com.ibm.streams.management.instance
Enum InstanceMXBean.Status
- java.lang.Object
-
- java.lang.Enum<InstanceMXBean.Status>
-
- com.ibm.streams.management.instance.InstanceMXBean.Status
-
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable<InstanceMXBean.Status>
- Enclosing interface:
- InstanceMXBean
public static enum InstanceMXBean.Status extends java.lang.Enum<InstanceMXBean.Status>
Enumeration for the current status of the instance
-
-
Enum Constant Summary
Enum Constants Enum Constant and Description FAILEDThe instance had been started but all resources now haveFAILEDstatus.PARTIALLY_FAILEDThe instance has been started but at least one resource has aFAILEDstatus.PARTIALLY_RUNNINGThe instance has been started and each of the services are running, but not all redundant services could be started in order to satisfy theHIGH_AVAILABILITY_COUNTconfiguration property setting.RUNNINGThe instance has been started and all resources have aRUNNINGstatus.STARTINGThe instance is starting.STOPPEDThe instance has been stopped.STOPPINGThe instance is stopping.UNKNOWNThe status of the instance is unknown.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method and Description static InstanceMXBean.StatusfromString(java.lang.String status)Converts from a string representation of an instance status to the corresponding enumeration value.java.lang.StringtoString()Converts the enumeration value to a string.static InstanceMXBean.StatusvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static InstanceMXBean.Status[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
STARTING
public static final InstanceMXBean.Status STARTING
The instance is starting.
-
RUNNING
public static final InstanceMXBean.Status RUNNING
The instance has been started and all resources have aRUNNINGstatus.
-
PARTIALLY_RUNNING
public static final InstanceMXBean.Status PARTIALLY_RUNNING
The instance has been started and each of the services are running, but not all redundant services could be started in order to satisfy theHIGH_AVAILABILITY_COUNTconfiguration property setting.
-
PARTIALLY_FAILED
public static final InstanceMXBean.Status PARTIALLY_FAILED
The instance has been started but at least one resource has aFAILEDstatus.
-
FAILED
public static final InstanceMXBean.Status FAILED
The instance had been started but all resources now haveFAILEDstatus.
-
STOPPING
public static final InstanceMXBean.Status STOPPING
The instance is stopping.
-
STOPPED
public static final InstanceMXBean.Status STOPPED
The instance has been stopped.
-
UNKNOWN
public static final InstanceMXBean.Status UNKNOWN
The status of the instance is unknown.
-
-
Method Detail
-
values
public static InstanceMXBean.Status[] 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 (InstanceMXBean.Status c : InstanceMXBean.Status.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static InstanceMXBean.Status 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
-
toString
public java.lang.String toString()
Converts the enumeration value to a string.- Overrides:
toStringin classjava.lang.Enum<InstanceMXBean.Status>- Returns:
- a string representation of the Status value.
-
fromString
public static InstanceMXBean.Status fromString(java.lang.String status)
Converts from a string representation of an instance status to the corresponding enumeration value.- Parameters:
status- specifies an instance status string value.- Returns:
- the corresponding Status enumeration value.
- Throws:
java.lang.IllegalArgumentException- if the input string does not map to an enumeration value.java.lang.NullPointerException- if the input value is null.
-
-