Constructor and Description |
---|
PlanInfo(JobInfo jobInfo)
Constructs a new instance of
PlanInfo from a proto object. |
PlanInfo(long id,
String name,
Status status,
long lastUpdated,
String errorMessage)
JobInfo constructor exposed for testing.
|
PlanInfo(PlanInfo planInfo,
boolean verbose)
Constructs the plan info from the job master's internal representation of job info.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
List<JobInfo> |
getChildren() |
String |
getDescription() |
String |
getErrorMessage() |
long |
getId() |
long |
getLastUpdated() |
String |
getName() |
Long |
getParentId() |
String |
getResult() |
Status |
getStatus() |
int |
hashCode() |
JobInfo |
toProto() |
String |
toString() |
public PlanInfo(long id, String name, Status status, long lastUpdated, @Nullable String errorMessage)
id
- job idname
- name of the jobstatus
- job statuslastUpdated
- last updated time in millisecondserrorMessage
- job error messagepublic PlanInfo(PlanInfo planInfo, boolean verbose)
planInfo
- the job master's internal job infoverbose
- whether the representation should be verbosepublic PlanInfo(JobInfo jobInfo) throws IOException
PlanInfo
from a proto object.jobInfo
- the proto objectIOException
- if the deserialization failspublic Long getParentId()
getParentId
in interface JobInfo
public String getDescription()
getDescription
in interface JobInfo
public String getResult()
public Status getStatus()
public List<JobInfo> getChildren()
getChildren
in interface JobInfo
public String getErrorMessage()
getErrorMessage
in interface JobInfo
public long getLastUpdated()
getLastUpdated
in interface JobInfo
public JobInfo toProto() throws IOException
toProto
in interface JobInfo
IOException
- if serialization failsCopyright © 2023. All Rights Reserved.