Package org.graylog.scheduler
Enum Class JobTriggerStatus
- All Implemented Interfaces:
Serializable
,Comparable<JobTriggerStatus>
,Constable
Job triggers can be in different lifecycle statuses.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionThe trigger was manually cancelled and has aborted its execution.The trigger is complete will not be fired anymore.The trigger cannot be fired because of an error.The trigger has been temporarily paused to avoid further executions.The trigger is ready to be locked by a node to execute the job.The trigger has been locked by a node and the job is executing. -
Method Summary
Modifier and TypeMethodDescriptionstatic JobTriggerStatus
Returns the enum constant of this class with the specified name.static JobTriggerStatus[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
RUNNABLE
The trigger is ready to be locked by a node to execute the job. -
RUNNING
The trigger has been locked by a node and the job is executing. -
COMPLETE
The trigger is complete will not be fired anymore. This will mostly be used for one-off jobs that should only run once. -
PAUSED
The trigger has been temporarily paused to avoid further executions. (e.g. maintenance periods) -
ERROR
The trigger cannot be fired because of an error. Triggers with this status will most probably need some human intervention to fix the underlying issue. (e.g. too many unsuccessful retries, missing Job class) -
CANCELLED
The trigger was manually cancelled and has aborted its execution.
-
-
Method Details
-
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
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 nameNullPointerException
- if the argument is null
-