diff options
Diffstat (limited to 'src/javax/jmdns/NetworkTopologyEvent.java')
-rw-r--r-- | src/javax/jmdns/NetworkTopologyEvent.java | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/src/javax/jmdns/NetworkTopologyEvent.java b/src/javax/jmdns/NetworkTopologyEvent.java new file mode 100644 index 0000000..16ef485 --- /dev/null +++ b/src/javax/jmdns/NetworkTopologyEvent.java @@ -0,0 +1,45 @@ +/** + * + */ +package javax.jmdns; + +import java.net.InetAddress; +import java.util.EventObject; + +/** + * @author Cédrik Lime, Pierre Frisch + */ +public abstract class NetworkTopologyEvent extends EventObject { + + /** + * + */ + private static final long serialVersionUID = -8630033521752540987L; + + /** + * Constructs a Service Event. + * + * @param eventSource + * The DNS on which the Event initially occurred. + * @exception IllegalArgumentException + * if source is null. + */ + protected NetworkTopologyEvent(final Object eventSource) { + super(eventSource); + } + + /** + * Returns the JmDNS instance associated with the event or null if it is a generic event. + * + * @return JmDNS instance + */ + public abstract JmDNS getDNS(); + + /** + * The Internet address affected by this event. + * + * @return InetAddress + */ + public abstract InetAddress getInetAddress(); + +} |