@ProviderType
public class NetInterfaceStateChangedEvent
extends org.osgi.service.event.Event
Modifier and Type | Class and Description |
---|---|
static class |
NetInterfaceStateChangedEvent.Reason |
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
NETWORK_EVENT_INTERFACE_PROPERTY
Name of the property to access the network interface name
|
static java.lang.String |
NETWORK_EVENT_INTERFACE_STATE_CHANGED_TOPIC
Topic of the NetworkStateChangedEvent
|
static java.lang.String |
NETWORK_EVENT_NEW_STATE_PROPERTY
Name of the property to access the new network state
|
static java.lang.String |
NETWORK_EVENT_OLD_STATE_PROPERTY
Name of the property to access the old network state
|
static java.lang.String |
NETWORK_EVENT_STATE_CHANGE_REASON_PROPERTY
Name of the property to access the reason of the change
|
Constructor and Description |
---|
NetInterfaceStateChangedEvent(java.util.Map<java.lang.String,?> properties) |
Modifier and Type | Method and Description |
---|---|
java.lang.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.
|
public static final java.lang.String NETWORK_EVENT_INTERFACE_STATE_CHANGED_TOPIC
public static final java.lang.String NETWORK_EVENT_INTERFACE_PROPERTY
public static final java.lang.String NETWORK_EVENT_NEW_STATE_PROPERTY
public static final java.lang.String NETWORK_EVENT_OLD_STATE_PROPERTY
public static final java.lang.String NETWORK_EVENT_STATE_CHANGE_REASON_PROPERTY
public NetInterfaceStateChangedEvent(java.util.Map<java.lang.String,?> properties)
public java.lang.String getInterfaceName()
public NetInterfaceState getNewState()
public NetInterfaceState getOldState()
public NetInterfaceStateChangedEvent.Reason getReason()