Constructor and Description |
---|
WorkflowInfo(JobInfo jobInfo)
Constructor from the proto object.
|
WorkflowInfo(long id,
String name,
Status status,
long lastUpdated,
String errorMessage,
List<JobInfo> children)
Default constructor.
|
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() |
Serializable |
getResult() |
Status |
getStatus() |
int |
hashCode() |
JobInfo |
toProto() |
String |
toString() |
public WorkflowInfo(long id, String name, Status status, long lastUpdated, String errorMessage, List<JobInfo> children)
id
- id of the workflowname
- name of the workflowstatus
- Status
of the workflowlastUpdated
- lastUpdated time in millisecondserrorMessage
- error messagechildren
- list of child job infospublic WorkflowInfo(JobInfo jobInfo) throws IOException
jobInfo
- proto representation of the jobIOException
@Nullable public Long getParentId()
getParentId
in interface JobInfo
@Nonnull public String getDescription()
getDescription
in interface JobInfo
public long getLastUpdated()
getLastUpdated
in interface JobInfo
@Nonnull public List<JobInfo> getChildren()
getChildren
in interface JobInfo
@Nullable public Serializable getResult()
@Nonnull public String getErrorMessage()
getErrorMessage
in interface JobInfo
@Nonnull public JobInfo toProto() throws IOException
toProto
in interface JobInfo
IOException
- if serialization failsCopyright © 2023. All Rights Reserved.