Package de.bsvrz.pua.prot.util
Enum JobState
- java.lang.Object
-
- java.lang.Enum<JobState>
-
- de.bsvrz.pua.prot.util.JobState
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<JobState>
,java.lang.constant.Constable
public enum JobState extends java.lang.Enum<JobState>
Definiert den Bearbeitungszustand einesJobInProgress
-
-
Enum Constant Summary
Enum Constants Enum Constant Description Aborted
Auftrag wurde abgebrochen.Failed
Auftrag wurde wegen eines Fehlers beendet.Finished
Auftrag ist fertiggestellt.FinishedAndSaved
Auftrag ist fertiggestellt und ein Protokoll wurde gelesen gespeichert (nur bei Protokoll-Erstellen-Aufträgen).FinishedAndUnread
Auftrag ist fertiggestellt und ein Protokoll wurde ungelesen gespeichert (nur bei Protokoll-Erstellen-Aufträgen) Dieser Status erlaubt clientseitig einfach festzustellen, wenn ein neues Protokoll fertiggestellt wurde, dass dann überPuaClient.getUnreadProtocol(long)
abgerufen werden kann.InProgress
Auftrag ist in Bearbeitung.InQueue
Auftrag ist in Warteschlange.
-
-
-
Enum Constant Detail
-
InQueue
public static final JobState InQueue
Auftrag ist in Warteschlange.
-
InProgress
public static final JobState InProgress
Auftrag ist in Bearbeitung.
-
Finished
public static final JobState Finished
Auftrag ist fertiggestellt. Wenn es sich um einen Protokoll-Erstellen-Auftrag handelt wurde das Protokoll entweder nicht gespeichert, oder die PuA-Server-Implementierung ist veraltet und übermittelt die Information, ob gespeichert wurde, nicht.
-
FinishedAndSaved
public static final JobState FinishedAndSaved
Auftrag ist fertiggestellt und ein Protokoll wurde gelesen gespeichert (nur bei Protokoll-Erstellen-Aufträgen). Dieser Status erlaubt clientseitig einfach festzustellen, wenn ein neues Protokoll fertiggestellt wurde, dass dann überPuaClient.getSavedProtocol(long)
abgerufen werden kann.
-
FinishedAndUnread
public static final JobState FinishedAndUnread
Auftrag ist fertiggestellt und ein Protokoll wurde ungelesen gespeichert (nur bei Protokoll-Erstellen-Aufträgen) Dieser Status erlaubt clientseitig einfach festzustellen, wenn ein neues Protokoll fertiggestellt wurde, dass dann überPuaClient.getUnreadProtocol(long)
abgerufen werden kann.
-
Aborted
public static final JobState Aborted
Auftrag wurde abgebrochen.
-
Failed
public static final JobState Failed
Auftrag wurde wegen eines Fehlers beendet.
-
-
Method Detail
-
values
public static JobState[] 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
public static JobState valueOf(java.lang.String name)
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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-