Package com.helger.schedule.quartz
Enum ESchedulerState
- java.lang.Object
-
- java.lang.Enum<ESchedulerState>
-
- com.helger.schedule.quartz.ESchedulerState
-
- All Implemented Interfaces:
com.helger.commons.id.IHasID<String>,Serializable,Comparable<ESchedulerState>
public enum ESchedulerState extends Enum<ESchedulerState> implements com.helger.commons.id.IHasID<String>
Defines the different scheduler states.- Author:
- Philip Helger
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ESchedulerStategetFromIDOrNull(String sID)StringgetID()static ESchedulerStatevalueOf(String name)Returns the enum constant of this type with the specified name.static ESchedulerState[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
STARTED
public static final ESchedulerState STARTED
-
STANDBY
public static final ESchedulerState STANDBY
-
SHUTDOWN
public static final ESchedulerState SHUTDOWN
-
-
Method Detail
-
values
public static ESchedulerState[] 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 (ESchedulerState c : ESchedulerState.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ESchedulerState 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
-
getID
@Nonnull @Nonempty public String getID()
- Specified by:
getIDin interfacecom.helger.commons.id.IHasID<String>
-
getFromIDOrNull
@Nullable public static ESchedulerState getFromIDOrNull(@Nullable String sID)
-
-