Enum InstanceState
- All Implemented Interfaces:
Serializable,Comparable<InstanceState>,java.lang.constant.Constable
public enum InstanceState extends Enum<InstanceState>
Represents the possible states of a
MicroserviceInstance.- See Also:
MicroserviceInstance
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants Enum Constant Description CREATEDThe instance was recently created and its existence is noted.KILLEDThe instance was forcibly shut down and is locked in that state.RUNNINGThe startup process was completed successfully.
The instance can now receiveRequestsSHUTDOWNThe shutdown process was completed successfully.
The instance does not accept any requests.
The instance can be restarted to continue working.SHUTTING_DOWNThe shutdown process of this instance was triggered.STARTINGThe startup process was triggered. -
Method Summary
Modifier and Type Method Description static InstanceStatevalueOf(String name)Returns the enum constant of this type with the specified name.static InstanceState[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
CREATED
The instance was recently created and its existence is noted. It should be ready to start up.- See Also:
MicroserviceInstance
-
STARTING
The startup process was triggered.- See Also:
MicroserviceInstance
-
RUNNING
The startup process was completed successfully.
The instance can now receiveRequests- See Also:
MicroserviceInstance
-
SHUTTING_DOWN
The shutdown process of this instance was triggered.
It does not accept subsequent requests, but it tries to finish currently active requests.- See Also:
MicroserviceInstance
-
SHUTDOWN
The shutdown process was completed successfully.
The instance does not accept any requests.
The instance can be restarted to continue working.- See Also:
MicroserviceInstance
-
KILLED
The instance was forcibly shut down and is locked in that state. All current handling processes (and potentially outgoing requests) were aborted.- See Also:
MicroserviceInstance
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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
-