org.inria.myriads.snoozeclient.parser.commands
public enum ClientCommand extends Enum<ClientCommand>
Enum Constant and Description |
---|
ADD
Add.
|
DEFINE
Define.
|
DESTROY
Destroy.
|
DUMP
Dump.
|
HOSTS
HostsList.
|
INFO
Info.
|
LIST
List.
|
REBOOT
Reboot.
|
REMOVE
Remove.
|
RESIZE
Resize.
|
RESUME
Resume.
|
SHUTDOWN
Shutdown.
|
START
Start.
|
SUSPEND
Suspend.
|
UNDEFINE
Undefine.
|
VISUALIZE
Visualize.
|
Modifier and Type | Method and Description |
---|---|
String |
getCommandName()
Returns the command name.
|
static ClientCommand |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ClientCommand[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ClientCommand DEFINE
public static final ClientCommand UNDEFINE
public static final ClientCommand ADD
public static final ClientCommand REMOVE
public static final ClientCommand START
public static final ClientCommand SUSPEND
public static final ClientCommand RESUME
public static final ClientCommand SHUTDOWN
public static final ClientCommand DESTROY
public static final ClientCommand INFO
public static final ClientCommand LIST
public static final ClientCommand VISUALIZE
public static final ClientCommand DUMP
public static final ClientCommand REBOOT
public static final ClientCommand RESIZE
public static final ClientCommand HOSTS
public static ClientCommand[] values()
for (ClientCommand c : ClientCommand.values()) System.out.println(c);
public static ClientCommand 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 getCommandName()
Copyright © 2013. All Rights Reserved.