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 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 and Description |
---|
NetInterfaceStateChangedEvent(Map<String,?> properties) |
Modifier and Type | Method and Description |
---|---|
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 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
public String getInterfaceName()
public NetInterfaceState getNewState()
public NetInterfaceState getOldState()
public NetInterfaceStateChangedEvent.Reason getReason()
Copyright © 2013. All Rights Reserved.