Enum TaskLoggingMode
- java.lang.Object
-
- java.lang.Enum<TaskLoggingMode>
-
- org.cyclos.model.system.configurations.TaskLoggingMode
-
- All Implemented Interfaces:
Serializable,Comparable<TaskLoggingMode>,HasMessageKey
public enum TaskLoggingMode extends Enum<TaskLoggingMode> implements HasMessageKey
Task logging level
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description MessageKeygetMessageKey()static TaskLoggingModevalueOf(String name)Returns the enum constant of this type with the specified name.static TaskLoggingMode[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
OFF
public static final TaskLoggingMode OFF
The logging is disabled
-
REGULAR
public static final TaskLoggingMode REGULAR
The logging is enabled but only for those tasks not being verbose
-
VERBOSE
public static final TaskLoggingMode VERBOSE
The logging is enabled for all tasks regardless it is verbose or not
-
-
Method Detail
-
values
public static TaskLoggingMode[] 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 (TaskLoggingMode c : TaskLoggingMode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static TaskLoggingMode 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
-
-