Enum-Klasse FacilityState

java.lang.Object
java.lang.Enum<FacilityState>
de.dlr.proseo.model.enums.FacilityState
Alle implementierten Schnittstellen:
Serializable, Comparable<FacilityState>, java.lang.constant.Constable

public enum FacilityState extends Enum<FacilityState>
For the user as well as for planning and product access purposes it is important to know, whether a processing facility is operational or not.
Allowed state transitions are DISABLED <--> STOPPED --> STARTING --> RUNNING --> STOPPING --> STOPPED.
Autor:
Dr. Thomas Bassler
  • Enum-Konstanten - Details

    • DISABLED

      public static final FacilityState DISABLED
      The processing facility must not be used. All requests concerning a facility in this state shall return the HTTP code 400 (Bad Request)
    • STOPPED

      public static final FacilityState STOPPED
      The processing facility is temporarily halted. The facility is available for order planning, but no job steps shall be started, and requests for product ingestion or download shall return the HTTP code 503 (Temporarily Unavailable) immediately.
    • STARTING

      public static final FacilityState STARTING
      The processing facility is in the run-up process. The fa- cility is available for order planning, job step starting may be initiated, but may time out, all other requests shall return the HTTP code 503 (Temporarily Unavailable) either immediately or after a reasonable time out period.
    • RUNNING

      public static final FacilityState RUNNING
      The processing facility is fully available. All requests are allowed.
    • STOPPING

      public static final FacilityState STOPPING
      The processing facility is in the process of being stopped. No new job steps shall be started, but running job steps are allowed to finish and can be queried. All other requests shall return the HTTP code 503 (Temporarily Unavailable) immediately.
  • Methodendetails

    • values

      public static FacilityState[] values()
      Gibt ein Array mit den Konstanten dieser Enum-Klasse in der Reihenfolge ihrer Deklaration zurück.
      Gibt zurück:
      ein Array mit den Konstanten dieser Enum-Klasse in der Reihenfolge ihrer Deklaration
    • valueOf

      public static FacilityState valueOf(String name)
      Gibt die Enum-Konstante dieser Klasse mit dem angegebenen Namen zurück. Die Zeichenfolge muss exakt mit einer ID übereinstimmen, mit der eine Enum-Konstante in dieser Klasse deklariert wird. (Zusätzliche Leerzeichen sind nicht zulässig.)
      Parameter:
      name - Name der zurückzugebenden Enumerationskonstante.
      Gibt zurück:
      Enumerationskonstante mit dem angegebenen Namen
      Löst aus:
      IllegalArgumentException - wenn diese Enum-Klasse keine Konstante mit dem angegebenen Namen enthält
      NullPointerException - wenn das Argument nicht angegeben wird
    • isLegalTransition

      public boolean isLegalTransition(FacilityState other)
      Check whether the transition to the other state is legal
      Parameter:
      other - the state to switch to
      Gibt zurück:
      true, if the transition is legal, false otherwise