Package org.silverpeas.core.scheduler
Enum SchedulerEvent.Type
- java.lang.Object
-
- java.lang.Enum<SchedulerEvent.Type>
-
- org.silverpeas.core.scheduler.SchedulerEvent.Type
-
- All Implemented Interfaces:
Serializable
,Comparable<SchedulerEvent.Type>
- Enclosing class:
- SchedulerEvent
public static enum SchedulerEvent.Type extends Enum<SchedulerEvent.Type>
The different possible types of an event send by the scheduler.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description JOB_FAILED
The execution of a job has failed.JOB_SUCCEEDED
The execution of a job has succeeded.TRIGGER_FIRED
A trigger has fired.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static SchedulerEvent.Type
valueOf(String name)
Returns the enum constant of this type with the specified name.static SchedulerEvent.Type[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
TRIGGER_FIRED
public static final SchedulerEvent.Type TRIGGER_FIRED
A trigger has fired.
-
JOB_SUCCEEDED
public static final SchedulerEvent.Type JOB_SUCCEEDED
The execution of a job has succeeded.
-
JOB_FAILED
public static final SchedulerEvent.Type JOB_FAILED
The execution of a job has failed.
-
-
Method Detail
-
values
public static SchedulerEvent.Type[] 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 (SchedulerEvent.Type c : SchedulerEvent.Type.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SchedulerEvent.Type valueOf(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:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
-