|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.osgi.service.event.Event com.eurotech.framework.net.NetInterfaceStateChangedEvent
public class NetInterfaceStateChangedEvent
Event raised when the state of a network interface has changed.
Nested Class Summary | |
---|---|
static class |
NetInterfaceStateChangedEvent.Reason
|
Field Summary | |
---|---|
static String |
NETWORK_EVENT_INTERFACE_PROPERTY
Name of the property to access the network interface name |
static String |
NETWORK_EVENT_INTERFACE_STATE_CHANGED_TOPIC
Topic of the NetworkStateChangedEvent |
static String |
NETWORK_EVENT_NEW_STATE_PROPERTY
Name of the property to access the new network state |
static String |
NETWORK_EVENT_OLD_STATE_PROPERTY
Name of the property to access the old network state |
static String |
NETWORK_EVENT_STATE_CHANGE_REASON_PROPERTY
Name of the property to access the reason of the change |
Constructor Summary | |
---|---|
NetInterfaceStateChangedEvent(Map<String,?> properties)
|
Method Summary | |
---|---|
String |
getInterfaceName()
Returns the network interface name. |
NetInterfaceState |
getNewState()
Returns the new network interface state. |
NetInterfaceState |
getOldState()
Returns the old network interface state. |
NetInterfaceStateChangedEvent.Reason |
getReason()
Returns the reason for the state transition. |
Methods inherited from class org.osgi.service.event.Event |
---|
containsProperty, equals, getProperty, getPropertyNames, getTopic, hashCode, matches, toString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final String NETWORK_EVENT_INTERFACE_STATE_CHANGED_TOPIC
public static final String NETWORK_EVENT_INTERFACE_PROPERTY
public static final String NETWORK_EVENT_NEW_STATE_PROPERTY
public static final String NETWORK_EVENT_OLD_STATE_PROPERTY
public static final String NETWORK_EVENT_STATE_CHANGE_REASON_PROPERTY
Constructor Detail |
---|
public NetInterfaceStateChangedEvent(Map<String,?> properties)
Method Detail |
---|
public String getInterfaceName()
public NetInterfaceState getNewState()
public NetInterfaceState getOldState()
public NetInterfaceStateChangedEvent.Reason getReason()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |