Enum TaskEvent.TaskEventType
- java.lang.Object
-
- java.lang.Enum<TaskEvent.TaskEventType>
-
- com.inet.taskplanner.server.api.event.TaskEvent.TaskEventType
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<TaskEvent.TaskEventType>
- Enclosing class:
- TaskEvent
public static enum TaskEvent.TaskEventType extends java.lang.Enum<TaskEvent.TaskEventType>
Possible task events- Since:
- taskplanner 3.0
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ACTIVATED
ADDED
DEACTIVATED
EXECUTION_ENDED
This event will come even if the task was deleted while executing.EXECUTION_STARTED
MODIFIED
If a modification includes the activation or deactivation of the task, then no extra ACTIVATED or DEACTIVATED events are sent.PROGRESS
This event is triggered by the executedJob
s andResultAction
s.
Only in case of this type, the progress of anTaskEvent
will have a meaningful value.REMOVED
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static TaskEvent.TaskEventType
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static TaskEvent.TaskEventType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ADDED
public static final TaskEvent.TaskEventType ADDED
-
MODIFIED
public static final TaskEvent.TaskEventType MODIFIED
If a modification includes the activation or deactivation of the task, then no extra ACTIVATED or DEACTIVATED events are sent.
-
ACTIVATED
public static final TaskEvent.TaskEventType ACTIVATED
-
DEACTIVATED
public static final TaskEvent.TaskEventType DEACTIVATED
-
REMOVED
public static final TaskEvent.TaskEventType REMOVED
-
EXECUTION_STARTED
public static final TaskEvent.TaskEventType EXECUTION_STARTED
-
PROGRESS
public static final TaskEvent.TaskEventType PROGRESS
This event is triggered by the executedJob
s andResultAction
s.
Only in case of this type, the progress of anTaskEvent
will have a meaningful value.
-
EXECUTION_ENDED
public static final TaskEvent.TaskEventType EXECUTION_ENDED
This event will come even if the task was deleted while executing.
-
-
Method Detail
-
values
public static TaskEvent.TaskEventType[] 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 (TaskEvent.TaskEventType c : TaskEvent.TaskEventType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static TaskEvent.TaskEventType 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
-
-