public static enum VirtualMachine.State extends Enum<VirtualMachine.State>
Enum Constant and Description |
---|
DESTROYED |
ERROR |
EXPUNGING |
MIGRATING |
RUNNING |
SHUTDOWNED |
STARTING |
STOPPED |
STOPPING |
UNKNOWN |
UNRECOGNIZED |
Modifier and Type | Method and Description |
---|---|
static VirtualMachine.State |
fromValue(String state) |
String |
toString() |
static VirtualMachine.State |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static VirtualMachine.State[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final VirtualMachine.State STARTING
public static final VirtualMachine.State RUNNING
public static final VirtualMachine.State STOPPING
public static final VirtualMachine.State STOPPED
public static final VirtualMachine.State DESTROYED
public static final VirtualMachine.State EXPUNGING
public static final VirtualMachine.State MIGRATING
public static final VirtualMachine.State ERROR
public static final VirtualMachine.State UNKNOWN
public static final VirtualMachine.State SHUTDOWNED
public static final VirtualMachine.State UNRECOGNIZED
public static VirtualMachine.State[] values()
for (VirtualMachine.State c : VirtualMachine.State.values()) System.out.println(c);
public static VirtualMachine.State 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 String toString()
toString
in class Enum<VirtualMachine.State>
public static VirtualMachine.State fromValue(String state)
Copyright © 2009-2016 The Apache Software Foundation. All Rights Reserved.