summaryrefslogtreecommitdiff
path: root/src/javax/jmdns/NetworkTopologyEvent.java
blob: 16ef4851dd1091f52b0bbc215558944845f97708 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
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();

}