| Constructor and Description |
|---|
PlanInfo(JobInfo jobInfo)
Constructs a new instance of
PlanInfo from a proto object. |
PlanInfo(long id,
java.lang.String name,
Status status,
long lastUpdated,
java.lang.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(java.lang.Object o) |
java.util.List<java.lang.String> |
getAffectedPaths() |
java.util.List<JobInfo> |
getChildren() |
java.lang.String |
getDescription() |
java.lang.String |
getErrorMessage() |
java.lang.String |
getErrorType() |
long |
getId() |
long |
getLastUpdated() |
java.lang.String |
getName() |
java.lang.Long |
getParentId() |
java.lang.String |
getResult() |
Status |
getStatus() |
int |
hashCode() |
JobInfo |
toProto() |
java.lang.String |
toString() |
public PlanInfo(long id,
java.lang.String name,
Status status,
long lastUpdated,
@Nullable
java.lang.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 java.lang.Long getParentId()
getParentId in interface JobInfopublic java.lang.String getName()
public java.lang.String getDescription()
getDescription in interface JobInfopublic java.lang.String getResult()
public Status getStatus()
public java.util.List<JobInfo> getChildren()
getChildren in interface JobInfopublic java.lang.String getErrorType()
getErrorType in interface JobInfopublic java.lang.String getErrorMessage()
getErrorMessage in interface JobInfopublic long getLastUpdated()
getLastUpdated in interface JobInfopublic java.util.List<java.lang.String> getAffectedPaths()
public JobInfo toProto() throws java.io.IOException
public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2020. All Rights Reserved.