Constructor and Description |
---|
WorkflowNodeState(String nodeId,
NodeStatus nodeStatus,
Set<Operation> fieldLineageOperations,
String runId,
Throwable failureCause)
Create a new instance.
|
WorkflowNodeState(String nodeId,
NodeStatus nodeStatus,
String runId,
Throwable failureCause)
Create a new instance.
|
Modifier and Type | Method and Description |
---|---|
Throwable |
getFailureCause()
Return the detail message string for failure if node execution failed, otherwise
null is returned. |
Set<Operation> |
getFieldLineageOperations()
Return the field operations recorded by this node.
|
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 WorkflowNodeState(String nodeId, NodeStatus nodeStatus, @Nullable String runId, @Nullable Throwable failureCause)
nodeId
- id of the node inside the WorkflownodeStatus
- status of the noderunId
- run id assigned to the node, null if current node represents custom action or predicatefailureCause
- cause of failure, null if execution of the node succeededpublic WorkflowNodeState(String nodeId, NodeStatus nodeStatus, Set<Operation> fieldLineageOperations, @Nullable String runId, @Nullable Throwable failureCause)
nodeId
- id of the node inside the WorkflownodeStatus
- status of the nodefieldLineageOperations
- the set of field operations emitted from this noderunId
- run id assigned to the node, null if current node represents custom action or predicatefailureCause
- cause of failure, null if execution of the node succeededpublic String getNodeId()
public NodeStatus getNodeStatus()
public Set<Operation> getFieldLineageOperations()
ProgramStatus.COMPLETED
successfully.@Nullable public String getRunId()
null
.Copyright © 2021 Cask Data, Inc. Licensed under the Apache License, Version 2.0.