Package de.dlr.proseo.model.enums
Enum-Klasse FacilityState
- Alle implementierten Schnittstellen:
Serializable
,Comparable<FacilityState>
,java.lang.constant.Constable
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.
Allowed state transitions are DISABLED <--> STOPPED --> STARTING --> RUNNING --> STOPPING --> STOPPED.
- Autor:
- Dr. Thomas Bassler
-
Verschachtelte Klassen - Übersicht
Von Klasse geerbte verschachtelte Klassen/Schnittstellen java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum-Konstanten - Übersicht
Enum-KonstantenEnum-KonstanteBeschreibungThe processing facility must not be used.The processing facility is fully available.The processing facility is in the run-up process.The processing facility is temporarily halted.The processing facility is in the process of being stopped. -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungboolean
isLegalTransition
(FacilityState other) Check whether the transition to the other state is legalstatic FacilityState
Gibt die Enum-Konstante dieser Klasse mit dem angegebenen Namen zurück.static FacilityState[]
values()
Gibt ein Array mit den Konstanten dieser Enum-Klasse in der Reihenfolge ihrer Deklaration zurück.
-
Enum-Konstanten - Details
-
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
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
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
The processing facility is fully available. All requests are allowed. -
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
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
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ältNullPointerException
- wenn das Argument nicht angegeben wird
-
isLegalTransition
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
-