1 /** 2 * 3 */ 4 package javax.jmdns; 5 6 import java.net.InetAddress; 7 import java.util.EventObject; 8 9 /** 10 * @author Cédrik Lime, Pierre Frisch 11 */ 12 public abstract class NetworkTopologyEvent extends EventObject { 13 14 /** 15 * 16 */ 17 private static final long serialVersionUID = -8630033521752540987L; 18 19 /** 20 * Constructs a Service Event. 21 * 22 * @param eventSource 23 * The DNS on which the Event initially occurred. 24 * @exception IllegalArgumentException 25 * if source is null. 26 */ 27 protected NetworkTopologyEvent(final Object eventSource) { 28 super(eventSource); 29 } 30 31 /** 32 * Returns the JmDNS instance associated with the event or null if it is a generic event. 33 * 34 * @return JmDNS instance 35 */ 36 public abstract JmDNS getDNS(); 37 38 /** 39 * The Internet address affected by this event. 40 * 41 * @return InetAddress 42 */ 43 public abstract InetAddress getInetAddress(); 44 45 }