ppe.ec2
Enum NetworkInfo.State
java.lang.Object
java.lang.Enum<NetworkInfo.State>
ppe.ec2.NetworkInfo.State
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable<NetworkInfo.State>
- Enclosing class:
- NetworkInfo
public static enum NetworkInfo.State
- extends java.lang.Enum<NetworkInfo.State>
Instance states per aws InstanceState.getState().getName().
Note that these are the values we've observed - they may not
exactly match the aws documentation.
There is one exception: The aws instance object does not
indicate when an instance is rebooting. When a network is
rebooting, we must explicitly set the state to 'rebooting'.
The code that sets the state to 'rebooting' is responsible
for calling NetworkInfo.setState()
to reset the
network state endogenously after rebooting (and any service
restart) is finished. The mechanism used in
cannot detect this since aws maintains the state 'running'
for instance in the process of rebooting.
Method Summary |
java.lang.String |
getTitle()
|
static NetworkInfo.State |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static NetworkInfo.State[] |
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 |
nil
public static final NetworkInfo.State nil
spotRequestPending
public static final NetworkInfo.State spotRequestPending
pending
public static final NetworkInfo.State pending
running
public static final NetworkInfo.State running
servicesPending
public static final NetworkInfo.State servicesPending
servicesNotRunning
public static final NetworkInfo.State servicesNotRunning
shuttingDown
public static final NetworkInfo.State shuttingDown
terminated
public static final NetworkInfo.State terminated
rebooting
public static final NetworkInfo.State rebooting
values
public static NetworkInfo.State[] 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 (NetworkInfo.State c : NetworkInfo.State.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static NetworkInfo.State valueOf(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified name
java.lang.NullPointerException
- if the argument is null
getTitle
public java.lang.String getTitle()