|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<RunMode>
com.atlassian.scheduler.config.RunMode
@PublicApi public enum RunMode
Represents how a Job will be run by the scheduler.
This mostly defines how a job will run in a clustered environment; however, it also affects whether or not the job will survive a restart of the underlying application.
| Enum Constant Summary | |
|---|---|
RUN_LOCALLY
The job is scheduled such that it will apply only to this particular node of the cluster. |
|
RUN_ONCE_PER_CLUSTER
The job is scheduled such that it will only run on one node of the cluster each time that it triggers. |
|
| Method Summary | |
|---|---|
static RunMode |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static RunMode[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
| Methods inherited from class java.lang.Enum |
|---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
public static final RunMode RUN_ONCE_PER_CLUSTER
Although jobs scheduled with this run mode must still register the JobRunner for the job on each restart,
the job's schedule will persist across restarts.
public static final RunMode RUN_LOCALLY
This job will not be persisted, and the job must be recreated if the application is restarted.
| Method Detail |
|---|
public static RunMode[] values()
for (RunMode c : RunMode.values()) System.out.println(c);
public static RunMode valueOf(String name)
name - the name of the enum constant to be returned.
IllegalArgumentException - if this enum type has no constant
with the specified name
NullPointerException - if the argument is null
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||