Package de.xima.fc.cluster.model.msg
Enum EClusterControllMessage
- java.lang.Object
-
- java.lang.Enum<EClusterControllMessage>
-
- de.xima.fc.cluster.model.msg.EClusterControllMessage
-
- All Implemented Interfaces:
Serializable
,Comparable<EClusterControllMessage>
public enum EClusterControllMessage extends Enum<EClusterControllMessage>
Enumeration of the possible control commands that can be sent to a node in the cluster.- Since:
- 3.1.0
- Author:
- XIMA MEDIA GmbH
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static EClusterControllMessage
valueOf(String name)
Returns the enum constant of this type with the specified name.static EClusterControllMessage[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
RELEASE
public static final EClusterControllMessage RELEASE
The node should stop performing work.
-
TAKEOVER
public static final EClusterControllMessage TAKEOVER
The node should move to failover mode and be ready to start performing work when required.
-
RETAKE
public static final EClusterControllMessage RETAKE
The node should start performing work.
-
-
Method Detail
-
values
public static EClusterControllMessage[] 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 (EClusterControllMessage c : EClusterControllMessage.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static EClusterControllMessage 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
-
-