com.eurotech.framework.net
Class NetInterfaceStateChangedEvent

java.lang.Object
  extended by org.osgi.service.event.Event
      extended by com.eurotech.framework.net.NetInterfaceStateChangedEvent

public class NetInterfaceStateChangedEvent
extends org.osgi.service.event.Event

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

NETWORK_EVENT_INTERFACE_STATE_CHANGED_TOPIC

public static final String NETWORK_EVENT_INTERFACE_STATE_CHANGED_TOPIC
Topic of the NetworkStateChangedEvent

See Also:
Constant Field Values

NETWORK_EVENT_INTERFACE_PROPERTY

public static final String NETWORK_EVENT_INTERFACE_PROPERTY
Name of the property to access the network interface name

See Also:
Constant Field Values

NETWORK_EVENT_NEW_STATE_PROPERTY

public static final String NETWORK_EVENT_NEW_STATE_PROPERTY
Name of the property to access the new network state

See Also:
Constant Field Values

NETWORK_EVENT_OLD_STATE_PROPERTY

public static final String NETWORK_EVENT_OLD_STATE_PROPERTY
Name of the property to access the old network state

See Also:
Constant Field Values

NETWORK_EVENT_STATE_CHANGE_REASON_PROPERTY

public static final String NETWORK_EVENT_STATE_CHANGE_REASON_PROPERTY
Name of the property to access the reason of the change

See Also:
Constant Field Values
Constructor Detail

NetInterfaceStateChangedEvent

public NetInterfaceStateChangedEvent(Map<String,?> properties)
Method Detail

getInterfaceName

public String getInterfaceName()
Returns the network interface name.

Returns:

getNewState

public NetInterfaceState getNewState()
Returns the new network interface state.

Returns:

getOldState

public NetInterfaceState getOldState()
Returns the old network interface state.

Returns:

getReason

public NetInterfaceStateChangedEvent.Reason getReason()
Returns the reason for the state transition.

Returns:


Copyright © 2013. All Rights Reserved.