Modifier and Type | Field and Description |
---|---|
private boolean |
done |
private java.lang.Exception |
exception |
private java.lang.Integer |
exitCode |
private Job |
job |
private boolean |
running |
private java.util.Map<java.lang.String,java.lang.String> |
schedulerSpecificInformation |
private java.lang.String |
state |
Constructor and Description |
---|
JobStatusImplementation(Job job,
java.lang.String state,
java.lang.Integer exitCode,
java.lang.Exception error,
boolean running,
boolean done,
java.util.Map<java.lang.String,java.lang.String> schedulerSpecificInformation) |
Modifier and Type | Method and Description |
---|---|
java.lang.Exception |
getException()
Get the exception produced by the Job or while retrieving the status.
|
java.lang.Integer |
getExitCode()
Get the exit code for the Job.
|
Job |
getJob()
Get the job for which this JobStatus was created.
|
java.util.Map<java.lang.String,java.lang.String> |
getSchedulerSpecficInformation()
Get scheduler specific information on the Job.
|
java.lang.String |
getState()
Get the state of the Job.
|
boolean |
hasException()
Has the Job or job retrieval produced a exception ?
|
boolean |
isDone()
Is the Job done.
|
boolean |
isRunning()
Is the Job running.
|
java.lang.String |
toString() |
private final Job job
private final java.lang.String state
private final java.lang.Integer exitCode
private final java.lang.Exception exception
private final boolean running
private final boolean done
private final java.util.Map<java.lang.String,java.lang.String> schedulerSpecificInformation
public JobStatusImplementation(Job job, java.lang.String state, java.lang.Integer exitCode, java.lang.Exception error, boolean running, boolean done, java.util.Map<java.lang.String,java.lang.String> schedulerSpecificInformation)
public Job getJob()
JobStatus
public java.lang.String getState()
JobStatus
public java.lang.Integer getExitCode()
JobStatus
getExitCode
in interface JobStatus
public boolean isRunning()
JobStatus
public boolean isDone()
JobStatus
public java.lang.Exception getException()
JobStatus
getException
in interface JobStatus
public boolean hasException()
JobStatus
hasException
in interface JobStatus
public java.util.Map<java.lang.String,java.lang.String> getSchedulerSpecficInformation()
JobStatus
getSchedulerSpecficInformation
in interface JobStatus
public java.lang.String toString()
toString
in class java.lang.Object