Package com.carfey.ops.api.enums
Enum StartupShutdownMode
- java.lang.Object
-
- java.lang.Enum<StartupShutdownMode>
-
- com.carfey.ops.api.enums.StartupShutdownMode
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<StartupShutdownMode>
public enum StartupShutdownMode extends java.lang.Enum<StartupShutdownMode>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CLUSTER_BOTHCLUSTER_SHUTDOWNCLUSTER_STARTUPHOST_BOTHHOST_SHUTDOWNHOST_STARTUPNONE
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static StartupShutdownModevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static StartupShutdownMode[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NONE
public static final StartupShutdownMode NONE
-
HOST_STARTUP
public static final StartupShutdownMode HOST_STARTUP
-
HOST_SHUTDOWN
public static final StartupShutdownMode HOST_SHUTDOWN
-
HOST_BOTH
public static final StartupShutdownMode HOST_BOTH
-
CLUSTER_STARTUP
public static final StartupShutdownMode CLUSTER_STARTUP
-
CLUSTER_SHUTDOWN
public static final StartupShutdownMode CLUSTER_SHUTDOWN
-
CLUSTER_BOTH
public static final StartupShutdownMode CLUSTER_BOTH
-
-
Method Detail
-
values
public static StartupShutdownMode[] 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 (StartupShutdownMode c : StartupShutdownMode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static StartupShutdownMode 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 namejava.lang.NullPointerException- if the argument is null
-
-