java.io.Serializable
, java.lang.Comparable<PartitionRuntimeMBean.State>
, java.lang.constant.Constable
public static enum PartitionRuntimeMBean.State extends java.lang.Enum<PartitionRuntimeMBean.State>
Enum Constant | Description |
---|---|
ADMIN |
|
BOOTED |
|
BOOTING |
|
FORCE_RESTARTING |
|
FORCE_SHUTTING_DOWN |
|
FORCE_SUSPENDING |
|
HALTED |
|
HALTING |
|
RESUMING |
|
RUNNING |
|
SHUTDOWN |
|
SHUTTING_DOWN |
|
STARTING |
|
STARTING_IN_ADMIN |
|
SUSPENDING |
|
UNKNOWN |
Modifier and Type | Field | Description |
---|---|---|
private static java.lang.String |
DEFAULT_USE_OLD_STATE_NAMES |
|
private static java.lang.String |
USE_OLD_STATE_NAMES_PROPERTY_NAME |
public static final PartitionRuntimeMBean.State UNKNOWN
public static final PartitionRuntimeMBean.State HALTED
public static final PartitionRuntimeMBean.State HALTING
public static final PartitionRuntimeMBean.State BOOTING
public static final PartitionRuntimeMBean.State SHUTDOWN
public static final PartitionRuntimeMBean.State BOOTED
public static final PartitionRuntimeMBean.State SHUTTING_DOWN
public static final PartitionRuntimeMBean.State FORCE_SHUTTING_DOWN
public static final PartitionRuntimeMBean.State STARTING_IN_ADMIN
public static final PartitionRuntimeMBean.State ADMIN
public static final PartitionRuntimeMBean.State RESUMING
public static final PartitionRuntimeMBean.State SUSPENDING
public static final PartitionRuntimeMBean.State FORCE_SUSPENDING
public static final PartitionRuntimeMBean.State STARTING
public static final PartitionRuntimeMBean.State FORCE_RESTARTING
public static final PartitionRuntimeMBean.State RUNNING
private static final java.lang.String USE_OLD_STATE_NAMES_PROPERTY_NAME
private static final java.lang.String DEFAULT_USE_OLD_STATE_NAMES
public static PartitionRuntimeMBean.State[] values()
for (PartitionRuntimeMBean.State c : PartitionRuntimeMBean.State.values()) System.out.println(c);
public static PartitionRuntimeMBean.State valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic static PartitionRuntimeMBean.State max(PartitionRuntimeMBean.State s1, PartitionRuntimeMBean.State s2)
public static PartitionRuntimeMBean.State min(PartitionRuntimeMBean.State... states)
public static boolean isRunning(PartitionRuntimeMBean.State s)
public static boolean isShutdown(PartitionRuntimeMBean.State s)
public static boolean isShutdownBooted(PartitionRuntimeMBean.State s)
public static boolean isShutdownBooted(java.lang.String stateName)
public static boolean isShutdownHalted(PartitionRuntimeMBean.State s)
public static boolean isShutdownHalted(java.lang.String stateName)
public static PartitionRuntimeMBean.State getLowestState(PartitionRuntimeMBean.Operation op)
public static boolean isRunning(java.lang.String stateName)
public static boolean isShutdown(java.lang.String stateName)
public static boolean isAdmin(java.lang.String stateName)
public static boolean isAdmin(PartitionRuntimeMBean.State state)
public static PartitionRuntimeMBean.State runningState()
public static PartitionRuntimeMBean.State shuttingDownState()
public static PartitionRuntimeMBean.State shutdownState()
public static PartitionRuntimeMBean.State shutdownInBootedState()
public static java.lang.String chooseUserDesiredStateName(PartitionRuntimeMBean.State s)
public static PartitionRuntimeMBean.State normalize(java.lang.String stateName)
public static boolean isAnyShutdownState(PartitionRuntimeMBean.State state)
public static PartitionRuntimeMBean.State chooseState(PartitionRuntimeMBean.State state, boolean isSubState)