Package org.cyclos.model.system.monitor
Enum BackgroundTaskStatus
- java.lang.Object
-
- java.lang.Enum<BackgroundTaskStatus>
-
- org.cyclos.model.system.monitor.BackgroundTaskStatus
-
- All Implemented Interfaces:
Serializable,Comparable<BackgroundTaskStatus>,HasMessageKey
public enum BackgroundTaskStatus extends Enum<BackgroundTaskStatus> implements HasMessageKey
Possible status of a background task according of its executions
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description MessageKeygetMessageKey()static BackgroundTaskStatusvalueOf(String name)Returns the enum constant of this type with the specified name.static BackgroundTaskStatus[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
RUNNING
public static final BackgroundTaskStatus RUNNING
Currently running some of the stored task executions.
-
SCHEDULED
public static final BackgroundTaskStatus SCHEDULED
There are executions stored in the database but none is being executed yet.
-
IDLE
public static final BackgroundTaskStatus IDLE
There aren't executions stored for the task.
-
-
Method Detail
-
values
public static BackgroundTaskStatus[] 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 (BackgroundTaskStatus c : BackgroundTaskStatus.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static BackgroundTaskStatus 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
-
getMessageKey
public MessageKey getMessageKey()
- Specified by:
getMessageKeyin interfaceHasMessageKey
-
-