|
GemFire 7.0 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | ||||||||
java.lang.Objectjava.lang.Enum<LocatorLauncher.Command>
com.gemstone.gemfire.distributed.LocatorLauncher.Command
public static enum LocatorLauncher.Command
An enumerated type representing valid commands to the Locator launcher.
| Enum Constant Summary | |
|---|---|
START
|
|
STATUS
|
|
STOP
|
|
UNSPECIFIED
|
|
VERSION
|
|
| Method Summary | |
|---|---|
String |
getName()
Gets the name of the Locator launcher command. |
List<String> |
getOptions()
Gets a set of valid options that can be used with the Locator launcher command when used from the command-line. |
boolean |
hasOption(String option)
Determines whether this Locator launcher command has the specified command-line option. |
static boolean |
isCommand(String name)
Determines whether the specified name refers to a valid Locator launcher command, as defined by this enumerated type. |
boolean |
isUnspecified()
Convenience method for determining whether this is the UNSPECIFIED Locator launcher command. |
static boolean |
isUnspecified(LocatorLauncher.Command command)
Determines whether the given Locator launcher command has been properly specified. |
String |
toString()
Gets the String representation of this Locator launcher command. |
static LocatorLauncher.Command |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static LocatorLauncher.Command |
valueOfName(String name)
Looks up a Locator launcher command by name. |
static LocatorLauncher.Command[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
| Methods inherited from class java.lang.Enum |
|---|
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, valueOf |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
public static final LocatorLauncher.Command START
public static final LocatorLauncher.Command STATUS
public static final LocatorLauncher.Command STOP
public static final LocatorLauncher.Command VERSION
public static final LocatorLauncher.Command UNSPECIFIED
| Method Detail |
|---|
public static LocatorLauncher.Command[] values()
for (LocatorLauncher.Command c : LocatorLauncher.Command.values()) System.out.println(c);
public static LocatorLauncher.Command 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 boolean isCommand(String name)
name - a String value indicating the potential name of a Locator launcher command.
public static boolean isUnspecified(LocatorLauncher.Command command)
command - the Locator launcher command.
UNSPECIFIEDpublic static LocatorLauncher.Command valueOfName(String name)
name - a String value indicating the name of the Locator launcher command.
public String getName()
public List<String> getOptions()
public boolean hasOption(String option)
option - a String indicating the name of the command-line option to this command.
public boolean isUnspecified()
UNSPECIFIEDpublic String toString()
toString in class Enum<LocatorLauncher.Command>
|
GemFire 7.0 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | ||||||||