@NotThreadSafe public final class JobInfo extends Object
Constructor and Description |
---|
JobInfo()
Default constructor.
|
JobInfo(JobInfo jobInfo)
Constructs the job info from the job master's internal representation of job info.
|
JobInfo(JobInfo jobInfo)
Constructs a new instance of
JobInfo from a proto object. |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
String |
getErrorMessage() |
long |
getJobId() |
long |
getLastStatusChangeMs() |
String |
getName() |
String |
getResult() |
Status |
getStatus() |
List<TaskInfo> |
getTaskInfoList() |
int |
hashCode() |
void |
setErrorMessage(String errorMessage) |
void |
setJobId(long jobId) |
void |
setLastStatusChangeMs(long lastStatusChangeMs) |
void |
setName(String name) |
void |
setResult(String result)
Sets the job result.
|
void |
setStatus(Status status)
Sets the job status.
|
void |
setTaskInfoList(List<TaskInfo> taskInfoList) |
JobInfo |
toProto() |
String |
toString() |
public JobInfo()
public JobInfo(JobInfo jobInfo)
jobInfo
- the job master's internal job infopublic JobInfo(JobInfo jobInfo) throws IOException
JobInfo
from a proto object.jobInfo
- the proto objectIOException
- if the deserialization failspublic void setJobId(long jobId)
jobId
- the job idpublic long getJobId()
public void setName(String name)
name
- the job namepublic String getName()
public void setResult(String result)
result
- the job resultpublic String getResult()
public void setStatus(Status status)
status
- the job statuspublic Status getStatus()
public void setTaskInfoList(List<TaskInfo> taskInfoList)
taskInfoList
- the list of task descriptorspublic void setErrorMessage(String errorMessage)
errorMessage
- the error messagepublic String getErrorMessage()
public void setLastStatusChangeMs(long lastStatusChangeMs)
lastStatusChangeMs
- the time when status last changed in millisecondspublic long getLastStatusChangeMs()
public JobInfo toProto() throws IOException
IOException
- if serialization failsCopyright © 2023. All Rights Reserved.