org.inria.myriads.snoozenode.groupmanager.statemachine
public enum VirtualMachineCommand extends Enum<VirtualMachineCommand>
Enum Constant and Description |
---|
DESTROY
Destroy.
|
MIGRATE
Migrate.
|
REBOOT
Reboot.
|
RESIZE
Resize.
|
RESUME
Resume.
|
SHUTDOWN
Shutdown.
|
SUSPEND
Suspend.
|
Modifier and Type | Method and Description |
---|---|
static VirtualMachineCommand |
fromString(String text)
Convert from string.
|
String |
toString() |
static VirtualMachineCommand |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static VirtualMachineCommand[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final VirtualMachineCommand SUSPEND
public static final VirtualMachineCommand RESUME
public static final VirtualMachineCommand SHUTDOWN
public static final VirtualMachineCommand REBOOT
public static final VirtualMachineCommand DESTROY
public static final VirtualMachineCommand MIGRATE
public static final VirtualMachineCommand RESIZE
public static VirtualMachineCommand[] values()
for (VirtualMachineCommand c : VirtualMachineCommand.values()) System.out.println(c);
public static VirtualMachineCommand 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<VirtualMachineCommand>
public static VirtualMachineCommand fromString(String text)
text
- The strings text to convert.Copyright © 2013. All Rights Reserved.