com.eurotech.framework.net
Enum NetInterfaceState

java.lang.Object
  extended by java.lang.Enum<NetInterfaceState>
      extended by com.eurotech.framework.net.NetInterfaceState
All Implemented Interfaces:
Serializable, Comparable<NetInterfaceState>

public enum NetInterfaceState
extends Enum<NetInterfaceState>

The current state of the a NetworkInterface.


Enum Constant Summary
ACTIVATED
          The device is active.
CONFIG
          The device is being configured.
DEACTIVATING
          The device's network connection is being torn down.
DISCONNECTED
          The device is not connected.
FAILED
          The device is in a failure state following an attempt to activate it.
IP_CHECK
          The device's IP connectivity ability is being determined.
IP_CONFIG
          The IP settings of the device are being requested and configured.
NEED_AUTH
          The device is awaiting secrets necessary to continue connection.
PREPARE
          The device is preparing to connect.
SECONDARIES
          The device is waiting for secondary connections to be activated.
UNAVAILABLE
          The device cannot be used (carrier off, rfkill, etc).
UNKNOWN
          The device is in an unknown state.
UNMANAGED
          The device is recognized but not managed by NetworkManager.
 
Method Summary
static NetInterfaceState parseCode(int code)
           
static NetInterfaceState valueOf(String name)
          Returns the enum constant of this type with the specified name.
static NetInterfaceState[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

UNKNOWN

public static final NetInterfaceState UNKNOWN
The device is in an unknown state.


UNMANAGED

public static final NetInterfaceState UNMANAGED
The device is recognized but not managed by NetworkManager.


UNAVAILABLE

public static final NetInterfaceState UNAVAILABLE
The device cannot be used (carrier off, rfkill, etc).


DISCONNECTED

public static final NetInterfaceState DISCONNECTED
The device is not connected.


PREPARE

public static final NetInterfaceState PREPARE
The device is preparing to connect.


CONFIG

public static final NetInterfaceState CONFIG
The device is being configured.


NEED_AUTH

public static final NetInterfaceState NEED_AUTH
The device is awaiting secrets necessary to continue connection.


IP_CONFIG

public static final NetInterfaceState IP_CONFIG
The IP settings of the device are being requested and configured.


IP_CHECK

public static final NetInterfaceState IP_CHECK
The device's IP connectivity ability is being determined.


SECONDARIES

public static final NetInterfaceState SECONDARIES
The device is waiting for secondary connections to be activated.


ACTIVATED

public static final NetInterfaceState ACTIVATED
The device is active.


DEACTIVATING

public static final NetInterfaceState DEACTIVATING
The device's network connection is being torn down.


FAILED

public static final NetInterfaceState FAILED
The device is in a failure state following an attempt to activate it.

Method Detail

values

public static NetInterfaceState[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (NetInterfaceState c : NetInterfaceState.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static NetInterfaceState valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null

parseCode

public static NetInterfaceState parseCode(int code)


Copyright © 2013. All Rights Reserved.