public class ChangeEvent
extends java.util.EventObject
Modifier and Type | Field and Description |
---|---|
static int |
ADDRESS_DOWN
Event type for address going down.
|
static int |
ADDRESS_UP
Event type for interface going down.
|
static int |
DNS_CHANGE
Event type for dns change.
|
static int |
IFACE_DOWN
Event type for interface going down.
|
static int |
IFACE_UP
Event type for interface going up.
|
Constructor and Description |
---|
ChangeEvent(java.lang.Object source,
int type)
Creates event.
|
ChangeEvent(java.lang.Object source,
int type,
boolean standby)
Creates event.
|
ChangeEvent(java.lang.Object source,
int type,
java.net.InetAddress address)
Creates event.
|
ChangeEvent(java.lang.Object source,
int type,
java.net.InetAddress address,
boolean standby,
boolean initial)
Creates event.
|
Modifier and Type | Method and Description |
---|---|
java.net.InetAddress |
getAddress()
The address that changed.
|
int |
getType()
The type of this event.
|
boolean |
isInitial()
Is this event initial one.
|
boolean |
isStandby()
Whether this event is after suspend of the computer.
|
java.lang.String |
toString()
Overrides toString method.
|
public static final int IFACE_DOWN
public static final int IFACE_UP
public static final int ADDRESS_DOWN
public static final int ADDRESS_UP
public static final int DNS_CHANGE
public ChangeEvent(java.lang.Object source, int type, java.net.InetAddress address, boolean standby, boolean initial)
source
- the source of the event, the interface.type
- the type of the event.address
- the address that changed.standby
- is the event after a suspend of the computer.initial
- is this event initial one.public ChangeEvent(java.lang.Object source, int type, java.net.InetAddress address)
source
- the source of the event, the interface.type
- the type of the event.address
- the address that changed.public ChangeEvent(java.lang.Object source, int type)
source
- the source of the event, the interface.type
- the type of the event.public ChangeEvent(java.lang.Object source, int type, boolean standby)
source
- the source of the event.type
- the type of the event.standby
- is the event after a suspend of the computer.public int getType()
public java.net.InetAddress getAddress()
public boolean isStandby()
public java.lang.String toString()
toString
in class java.util.EventObject
public boolean isInitial()
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.