Package alluxio.job.wire
Class WorkflowInfo
- java.lang.Object
-
- alluxio.job.wire.WorkflowInfo
-
-
Constructor Summary
Constructors Constructor Description WorkflowInfo(long id, java.lang.String name, Status status, long lastUpdated, java.lang.String errorType, java.lang.String errorMessage, java.util.List<JobInfo> children)Default constructor.WorkflowInfo(alluxio.grpc.JobInfo jobInfo)Constructor from the proto object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)java.util.List<JobInfo>getChildren()java.lang.StringgetDescription()java.lang.StringgetErrorMessage()java.lang.StringgetErrorType()longgetId()longgetLastUpdated()java.lang.StringgetName()java.lang.LonggetParentId()java.io.SerializablegetResult()StatusgetStatus()inthashCode()alluxio.grpc.JobInfotoProto()java.lang.StringtoString()-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface alluxio.job.wire.JobInfo
getAffectedPaths
-
-
-
-
Constructor Detail
-
WorkflowInfo
public WorkflowInfo(long id, java.lang.String name, Status status, long lastUpdated, java.lang.String errorType, java.lang.String errorMessage, java.util.List<JobInfo> children)Default constructor.- Parameters:
id- id of the workflowname- name of the workflowstatus-Statusof the workflowlastUpdated- lastUpdated time in millisecondserrorType- error typeerrorMessage- error messagechildren- list of child job infos
-
WorkflowInfo
public WorkflowInfo(alluxio.grpc.JobInfo jobInfo) throws java.io.IOExceptionConstructor from the proto object.- Parameters:
jobInfo- proto representation of the job- Throws:
java.io.IOException
-
-
Method Detail
-
getParentId
@Nullable public java.lang.Long getParentId()
- Specified by:
getParentIdin interfaceJobInfo- Returns:
- parent job id
-
getName
@Nonnull public java.lang.String getName()
-
getDescription
@Nonnull public java.lang.String getDescription()
- Specified by:
getDescriptionin interfaceJobInfo- Returns:
- description of the job
-
getStatus
@Nonnull public Status getStatus()
-
getLastUpdated
public long getLastUpdated()
- Specified by:
getLastUpdatedin interfaceJobInfo- Returns:
- last updated time in milliseconds
-
getChildren
@Nonnull public java.util.List<JobInfo> getChildren()
- Specified by:
getChildrenin interfaceJobInfo- Returns:
- collection of children
-
getResult
@Nullable public java.io.Serializable getResult()
-
getErrorType
@Nonnull public java.lang.String getErrorType()
- Specified by:
getErrorTypein interfaceJobInfo- Returns:
- error type
-
getErrorMessage
@Nonnull public java.lang.String getErrorMessage()
- Specified by:
getErrorMessagein interfaceJobInfo- Returns:
- error message
-
toProto
@Nonnull public alluxio.grpc.JobInfo toProto() throws java.io.IOException
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-