Enum NodeExecutionStateType
- java.lang.Object
-
- java.lang.Enum<NodeExecutionStateType>
-
- com.evolveum.midpoint.xml.ns._public.common.common_3.NodeExecutionStateType
-
- All Implemented Interfaces:
Serializable
,Comparable<NodeExecutionStateType>
public enum NodeExecutionStateType extends Enum<NodeExecutionStateType>
Node state from the user's point of view. TODO decide what to do with this data type.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description COMMUNICATION_ERROR
State unknown due to communication error.DOWN
Node is turned off (its "running" flag is set to false).ERROR
Node error (see NodeErrorStateType for more details).NOT_CHECKING_IN
Node has not checked in for at least "nodeTimeout" seconds (default is 30).PAUSED
Node is running, scheduler is paused.RUNNING
Node is running, task scheduler is running.STARTING
Node is starting.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static NodeExecutionStateType
fromValue(String v)
String
value()
static NodeExecutionStateType
valueOf(String name)
Returns the enum constant of this type with the specified name.static NodeExecutionStateType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
RUNNING
public static final NodeExecutionStateType RUNNING
Node is running, task scheduler is running.
-
PAUSED
public static final NodeExecutionStateType PAUSED
Node is running, scheduler is paused.
-
NOT_CHECKING_IN
public static final NodeExecutionStateType NOT_CHECKING_IN
Node has not checked in for at least "nodeTimeout" seconds (default is 30). But it has not declared itself as turned off. Note that other nodes can declare a node as turned off after not checking in for "nodeAlivenessTimeout" seconds (default is 900). This state is available only for remote nodes, of course.
-
STARTING
public static final NodeExecutionStateType STARTING
Node is starting. It is expected it will be alive soon but should not be contacted via REST yet.
-
DOWN
public static final NodeExecutionStateType DOWN
Node is turned off (its "running" flag is set to false). It either declares itself to be in this state when going down, or other nodes can do it after it does not check in for "nodeAlivenessTimeout" seconds (default is 900).
-
ERROR
public static final NodeExecutionStateType ERROR
Node error (see NodeErrorStateType for more details).
-
COMMUNICATION_ERROR
public static final NodeExecutionStateType COMMUNICATION_ERROR
State unknown due to communication error.
-
-
Method Detail
-
values
public static NodeExecutionStateType[] 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 (NodeExecutionStateType c : NodeExecutionStateType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static NodeExecutionStateType valueOf(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:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
value
public String value()
-
fromValue
public static NodeExecutionStateType fromValue(String v)
-
-