public enum NetInterfaceState extends Enum<NetInterfaceState>
Enum Constant and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
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.
|
public static final NetInterfaceState UNKNOWN
public static final NetInterfaceState UNMANAGED
public static final NetInterfaceState UNAVAILABLE
public static final NetInterfaceState DISCONNECTED
public static final NetInterfaceState PREPARE
public static final NetInterfaceState CONFIG
public static final NetInterfaceState NEED_AUTH
public static final NetInterfaceState IP_CONFIG
public static final NetInterfaceState IP_CHECK
public static final NetInterfaceState SECONDARIES
public static final NetInterfaceState ACTIVATED
public static final NetInterfaceState DEACTIVATING
public static final NetInterfaceState FAILED
public static NetInterfaceState[] values()
for (NetInterfaceState c : NetInterfaceState.values()) System.out.println(c);
public static NetInterfaceState valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant
with the specified nameNullPointerException
- if the argument is nullpublic static NetInterfaceState parseCode(int code)
Copyright © 2014. All Rights Reserved.