Enum ClusterInteractionRequest.Operation
- java.lang.Object
-
- java.lang.Enum<ClusterInteractionRequest.Operation>
-
- de.aristaflow.adept2.core.registry.cluster.ClusterInteractionRequest.Operation
-
- All Implemented Interfaces:
Serializable
,Comparable<ClusterInteractionRequest.Operation>
- Enclosing class:
- ClusterInteractionRequest
public static enum ClusterInteractionRequest.Operation extends Enum<ClusterInteractionRequest.Operation>
The operations which can be requested to be performed by the cluster heartbeat.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description FORCE_SERVER_LOST
Poll the server and force its lost status.POLL_SERVER
Wake up the heartbeat thread and poll the server node.RESTART_THIS
The current node is doubtful and should restart.SHUTDOWN_HEARTBEAT
The cluster heartbeat should shutdown.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ClusterInteractionRequest.Operation
valueOf(String name)
Returns the enum constant of this type with the specified name.static ClusterInteractionRequest.Operation[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
FORCE_SERVER_LOST
public static final ClusterInteractionRequest.Operation FORCE_SERVER_LOST
Poll the server and force its lost status.
-
POLL_SERVER
public static final ClusterInteractionRequest.Operation POLL_SERVER
Wake up the heartbeat thread and poll the server node.
-
RESTART_THIS
public static final ClusterInteractionRequest.Operation RESTART_THIS
The current node is doubtful and should restart.
-
SHUTDOWN_HEARTBEAT
public static final ClusterInteractionRequest.Operation SHUTDOWN_HEARTBEAT
The cluster heartbeat should shutdown.
-
-
Method Detail
-
values
public static ClusterInteractionRequest.Operation[] 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 (ClusterInteractionRequest.Operation c : ClusterInteractionRequest.Operation.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ClusterInteractionRequest.Operation 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
-
-