|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<NetworkState>
com.eurotech.framework.net.NetworkState
public enum NetworkState
The overall state of the networking subsystem.
| Enum Constant Summary | |
|---|---|
ASLEEP
Networking is inactive and all devices are disabled. |
|
CONNECTED_GLOBAL
A network device is connected, with global network connectivity. |
|
CONNECTED_LOCAL
A network device is connected, but there is only link-local connectivity. |
|
CONNECTED_SITE
A network device is connected, but there is only site-local connectivity. |
|
CONNECTING
A network device is connecting to a network and there is no other available network connection. |
|
DISCONNECTED
There is no active network connection. |
|
DISCONNECTING
Network connections are being cleaned up. |
|
UNKNOWN
Networking state is unknown. |
|
| Method Summary | |
|---|---|
static NetworkState |
parseCode(int code)
|
static NetworkState |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static NetworkState[] |
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 |
|---|
public static final NetworkState UNKNOWN
public static final NetworkState ASLEEP
public static final NetworkState DISCONNECTED
public static final NetworkState DISCONNECTING
public static final NetworkState CONNECTING
public static final NetworkState CONNECTED_LOCAL
public static final NetworkState CONNECTED_SITE
public static final NetworkState CONNECTED_GLOBAL
| Method Detail |
|---|
public static NetworkState[] values()
for (NetworkState c : NetworkState.values()) System.out.println(c);
public static NetworkState valueOf(String name)
name - the name of the enum constant to be returned.
IllegalArgumentException - if this enum type has no constant
with the specified name
NullPointerException - if the argument is nullpublic static NetworkState parseCode(int code)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||