public class JobStatus
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static int |
FAILED |
static int |
PREP |
static int |
RUNNING |
static int |
SUCCEEDED |
| Constructor and Description |
|---|
JobStatus() |
| Modifier and Type | Method and Description |
|---|---|
long |
getFinishTime() |
java.lang.String |
getJobId() |
static java.lang.String |
getJobRunState(int state)
Helper method to get human-readable state of the job.
|
java.lang.String |
getJobStage() |
float |
getProgress() |
long |
getStartTime() |
void |
setFinishTime(long finishTime) |
void |
setJobId(java.lang.String jobId) |
void |
setJobStage(java.lang.String jobStage) |
void |
setProgress(float progress) |
void |
setStartTime(long startTime) |
public static final int RUNNING
public static final int SUCCEEDED
public static final int FAILED
public static final int PREP
public static java.lang.String getJobRunState(int state)
state - job statepublic java.lang.String getJobId()
public void setJobId(java.lang.String jobId)
jobId - the jobId to setpublic java.lang.String getJobStage()
public void setJobStage(java.lang.String jobStage)
jobStage - the jobStage to setpublic float getProgress()
public void setProgress(float progress)
progress - the progress to setpublic long getStartTime()
public void setStartTime(long startTime)
startTime - the startTime to setpublic long getFinishTime()
public void setFinishTime(long finishTime)
finishTime - the finishTime to setCopyright © 2017. All Rights Reserved.