Enum Class 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>,java.lang.constant.Constable
- 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.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionPoll the server and force its lost status.Wake up the heartbeat thread and poll the server node.The current node is doubtful and should restart.The cluster heartbeat should shutdown. -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.static ClusterInteractionRequest.Operation[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
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 Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-