Package alluxio.job.wire
Class PlanInfo
- java.lang.Object
-
- alluxio.job.wire.PlanInfo
-
-
Constructor Summary
Constructors Constructor Description PlanInfo(long id, java.lang.String name, Status status, long lastUpdated, java.lang.String errorMessage)JobInfo constructor exposed for testing.PlanInfo(alluxio.grpc.JobInfo jobInfo)Constructs a new instance ofPlanInfofrom a proto object.PlanInfo(PlanInfo planInfo, boolean verbose)Constructs the plan info from the job master's internal representation of job info.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)java.util.List<java.lang.String>getAffectedPaths()java.util.List<JobInfo>getChildren()java.lang.StringgetDescription()java.lang.StringgetErrorMessage()java.lang.StringgetErrorType()longgetId()longgetLastUpdated()java.lang.StringgetName()java.lang.LonggetParentId()java.lang.StringgetResult()StatusgetStatus()inthashCode()alluxio.grpc.JobInfotoProto()java.lang.StringtoString()
-
-
-
Constructor Detail
-
PlanInfo
public PlanInfo(long id, java.lang.String name, Status status, long lastUpdated, @Nullable java.lang.String errorMessage)JobInfo constructor exposed for testing.- Parameters:
id- job idname- name of the jobstatus- job statuslastUpdated- last updated time in millisecondserrorMessage- job error message
-
PlanInfo
public PlanInfo(PlanInfo planInfo, boolean verbose)
Constructs the plan info from the job master's internal representation of job info.- Parameters:
planInfo- the job master's internal job infoverbose- whether the representation should be verbose
-
PlanInfo
public PlanInfo(alluxio.grpc.JobInfo jobInfo) throws java.io.IOExceptionConstructs a new instance ofPlanInfofrom a proto object.- Parameters:
jobInfo- the proto object- Throws:
java.io.IOException- if the deserialization fails
-
-
Method Detail
-
getParentId
public java.lang.Long getParentId()
- Specified by:
getParentIdin interfaceJobInfo- Returns:
- parent job id
-
getName
public java.lang.String getName()
-
getDescription
public java.lang.String getDescription()
- Specified by:
getDescriptionin interfaceJobInfo- Returns:
- description of the job
-
getResult
public java.lang.String getResult()
-
getStatus
public Status getStatus()
-
getChildren
public java.util.List<JobInfo> getChildren()
- Specified by:
getChildrenin interfaceJobInfo- Returns:
- collection of children
-
getErrorType
public java.lang.String getErrorType()
- Specified by:
getErrorTypein interfaceJobInfo- Returns:
- the error type
-
getErrorMessage
public java.lang.String getErrorMessage()
- Specified by:
getErrorMessagein interfaceJobInfo- Returns:
- error message
-
getLastUpdated
public long getLastUpdated()
- Specified by:
getLastUpdatedin interfaceJobInfo- Returns:
- last updated time in milliseconds
-
getAffectedPaths
public java.util.List<java.lang.String> getAffectedPaths()
- Specified by:
getAffectedPathsin interfaceJobInfo- Returns:
- a list of affected alluxio paths by this plan
-
toProto
public alluxio.grpc.JobInfo toProto() throws java.io.IOException
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-