Enum PauseOrCancelAction
- java.lang.Object
-
- java.lang.Enum<PauseOrCancelAction>
-
- fr.gouv.vitam.common.model.processing.PauseOrCancelAction
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<PauseOrCancelAction>
public enum PauseOrCancelAction extends java.lang.Enum<PauseOrCancelAction>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ACTION_CANCEL
When the cancel occurs, the current step will be marked as ACTION_CANCELACTION_COMPLETE
When the step is finished without pause nor cancel, the current step will be marked as ACTION_COMPLETEACTION_PAUSE
When the pause occurs, the current step will be marked as ACTION_PAUSEACTION_RECOVER
When the step was ACTION_PAUSE, after restart the step will be marked as ACTION_RECOVERACTION_REPLAY
When the replay occurs, the current step will be marked as ACTION_REPLAY, so it could be replayedACTION_RUN
The default PauseOrCancelAction
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static PauseOrCancelAction
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static PauseOrCancelAction[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ACTION_RUN
public static final PauseOrCancelAction ACTION_RUN
The default PauseOrCancelAction
-
ACTION_RECOVER
public static final PauseOrCancelAction ACTION_RECOVER
When the step was ACTION_PAUSE, after restart the step will be marked as ACTION_RECOVER
-
ACTION_REPLAY
public static final PauseOrCancelAction ACTION_REPLAY
When the replay occurs, the current step will be marked as ACTION_REPLAY, so it could be replayed
-
ACTION_PAUSE
public static final PauseOrCancelAction ACTION_PAUSE
When the pause occurs, the current step will be marked as ACTION_PAUSE
-
ACTION_CANCEL
public static final PauseOrCancelAction ACTION_CANCEL
When the cancel occurs, the current step will be marked as ACTION_CANCEL
-
ACTION_COMPLETE
public static final PauseOrCancelAction ACTION_COMPLETE
When the step is finished without pause nor cancel, the current step will be marked as ACTION_COMPLETE
-
-
Method Detail
-
values
public static PauseOrCancelAction[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (PauseOrCancelAction c : PauseOrCancelAction.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static PauseOrCancelAction 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
-
-