| Constructor and Description |
|---|
WorkflowNodeStateDetail(String nodeId,
NodeStatus nodeStatus)
Create a new instance.
|
WorkflowNodeStateDetail(String nodeId,
NodeStatus nodeStatus,
String runId,
BasicThrowable failureCause)
Create a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
BasicThrowable |
getFailureCause()
Return the detail message string for failure if node execution failed, otherwise
null is returned. |
String |
getNodeId()
Return the id of the node for which the state is maintained.
|
NodeStatus |
getNodeStatus()
Return the status of the node for which the state is maintained.
|
String |
getRunId()
Return the run id if node represents programs, such as MapReduce or Spark.
|
public WorkflowNodeStateDetail(String nodeId, NodeStatus nodeStatus)
nodeId - id of the node inside a WorkflownodeStatus - status of the nodepublic WorkflowNodeStateDetail(String nodeId, NodeStatus nodeStatus, @Nullable String runId, @Nullable BasicThrowable failureCause)
nodeId - id of the node inside a WorkflownodeStatus - status of the noderunId - run id assigned to the node, {code null} if current node represents custom action or predicatefailureCause - cause of failure, {code null} if execution of the node succeededpublic String getNodeId()
public NodeStatus getNodeStatus()
@Nullable public String getRunId()
null.@Nullable public BasicThrowable getFailureCause()
null is returned.Copyright © 2016 Cask Data, Inc. Licensed under the Apache License, Version 2.0.