Enum Class Status
- All Implemented Interfaces:
Serializable,Comparable<Status>,java.lang.constant.Constable
Status information for synchronising the cluster nodes where only one
provides the AristaFlow server (singleton) while all others are clients of
this server.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAristaFlow is running as client on its node and it is connected to the AristaFlow-server.The status of the server is doubtful, that is, the server seems to be lost but it is given additional time to recover.The AristaFlow server has not sent alive signals and is therefore considered lost.AristaFlow is running as client on its node but it has lost connection to the AristaFlow-server.AristaFlow has been running as client on its node and it is now restarting.The AristaFlow server is restarting on its node.AristaFlow is running as server on its node.AristaFlow is starting on its node.AristaFlow is starting as client on its node.AristaFlow is starting as server on its node.AristaFlow has terminated on its node.AristaFlow has been running as client on its node and it is now terminating.The AristaFlow server is terminating on its node. -
Method Summary
Modifier and TypeMethodDescriptionintgetCode()Gets the code that is used for storing the status.static StatusvalueOf(int code) Gets the status for the corresponding code ornullin case there is no corresponding status for the designated code.static StatusReturns the enum constant of this class with the specified name.static Status[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
STARTING
AristaFlow is starting on its node. It has not decided yet whether it is a server or a client. -
STARTING_SERVER
AristaFlow is starting as server on its node. -
RUNNING_SERVER
AristaFlow is running as server on its node. -
RESTARTING_SERVER
The AristaFlow server is restarting on its node. This is used instead ofTERMINATING_SERVERto signal the clients that the server will be running again shortly. -
TERMINATING_SERVER
The AristaFlow server is terminating on its node. -
DOUBTFUL_SERVER
The status of the server is doubtful, that is, the server seems to be lost but it is given additional time to recover. -
LOST_SERVER
The AristaFlow server has not sent alive signals and is therefore considered lost. As soon as the server sends the signal next time, it has to terminate. -
STARTING_CLIENT
AristaFlow is starting as client on its node. -
CONNECTED_CLIENT
AristaFlow is running as client on its node and it is connected to the AristaFlow-server. -
RECONNECTING_CLIENT
AristaFlow is running as client on its node but it has lost connection to the AristaFlow-server. It is trying to reconnect to the server. -
TERMINATING_CLIENT
AristaFlow has been running as client on its node and it is now terminating. -
RESTARTING_CLIENT
AristaFlow has been running as client on its node and it is now restarting. This is used to signal the server and other clients, that this client will be running again shortly (as client). -
TERMINATED
AristaFlow has terminated on its node. Usually this status is used for signalling the termination but not stored in the database. Instead the corresponding row is removed from the database, that is, the node becomes unknown.
-
-
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
-
getCode
public int getCode()Gets the code that is used for storing the status.- Returns:
- The code that is used for storing the status. This will never be
null.
-
valueOf
Gets the status for the corresponding code ornullin case there is no corresponding status for the designated code.- Parameters:
code- The code that is used for representing a status.- Returns:
- The status the designated code represents or
nullin case there is no corresponding status.
-