Enum Class InstanceState

java.lang.Object
java.lang.Enum<InstanceState>
cambio.simulator.entities.microservice.InstanceState
All Implemented Interfaces:
Serializable, Comparable<InstanceState>, Constable

public enum InstanceState extends Enum<InstanceState>
Represents the possible states of a MicroserviceInstance.
See Also:
  • Enum Constant Details

    • CREATED

      public static final InstanceState CREATED
      The instance was recently created and its existence is noted. It should be ready to start up.
      See Also:
    • STARTING

      public static final InstanceState STARTING
      The startup process was triggered.
      See Also:
    • RUNNING

      public static final InstanceState RUNNING
      The startup process was completed successfully.
      The instance can now receive Requests
      See Also:
    • SHUTTING_DOWN

      public static final InstanceState 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:
    • SHUTDOWN

      public static final InstanceState SHUTDOWN
      The shutdown process was completed successfully.
      The instance does not accept any requests.
      The instance can be restarted to continue working.
      See Also:
    • KILLED

      public static final InstanceState 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:
  • Method Details

    • values

      public static InstanceState[] 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

      public static InstanceState valueOf(String name)
      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 name
      NullPointerException - if the argument is null