@PublicApi public enum RunOutcome extends Enum<RunOutcome>
| Enum Constant and Description |
|---|
ABORTED
We did not start the job at the scheduled time because it was not ready.
|
FAILED
The job was started but it either threw an exception or returned a
JobRunnerResponse
that indicated the job had failed. |
SUCCESS
The job ran
successfully. |
UNAVAILABLE
The job had no job runner registered when an attempt was made to fire it.
|
| Modifier and Type | Method and Description |
|---|---|
static RunOutcome |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static RunOutcome[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RunOutcome SUCCESS
successfully.public static final RunOutcome UNAVAILABLE
This likely means that the job is left over from an older version of the application or from an add-on that is no longer installed.
Note: This outcome is only produced by the scheduler
implementations; it cannot be returned in a JobRunnerResponse.
public static final RunOutcome ABORTED
Some possible causes include:
RunMode.RUN_LOCALLY and another node registering afterwards
using RunMode.RUN_ONCE_PER_CLUSTERJobRunnerResponse
that indicated the job had been aborted.public static final RunOutcome FAILED
JobRunnerResponse
that indicated the job had failed.public static RunOutcome[] values()
for (RunOutcome c : RunOutcome.values()) System.out.println(c);
public static RunOutcome valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullCopyright © 2017 Atlassian. All rights reserved.