public abstract class DagNode<O> extends Object implements Comparable<DagNode<O>>
| Modifier and Type | Field and Description |
|---|---|
protected List<DagNode<O>> |
childNodes |
protected DeltaConfig.Config |
config |
protected static org.slf4j.Logger |
log |
protected List<DagNode<O>> |
parentNodes |
protected O |
result |
| Constructor and Description |
|---|
DagNode() |
| Modifier and Type | Method and Description |
|---|---|
DagNode<O> |
addChildNode(DagNode childNode) |
DagNode<O> |
addParentNode(DagNode parentNode) |
DagNode |
clone() |
int |
compareTo(DagNode<O> thatNode) |
boolean |
equals(Object o) |
abstract void |
execute(ExecutionContext context,
int curItrCount)
Execute the
DagNode. |
List<DagNode<O>> |
getChildNodes() |
DeltaConfig.Config |
getConfig() |
String |
getName() |
List<DagNode<O>> |
getParentNodes() |
O |
getResult() |
int |
hashCode() |
boolean |
isCompleted() |
void |
setCompleted(boolean completed) |
void |
setParentNodes(List<DagNode<O>> parentNodes) |
protected static org.slf4j.Logger log
protected O result
protected DeltaConfig.Config config
public O getResult()
public abstract void execute(ExecutionContext context, int curItrCount) throws Exception
DagNode.context - The context needed for an execution of a node.curItrCount - iteration count for executing the node.Exception - Thrown if the execution failed.public boolean isCompleted()
public void setCompleted(boolean completed)
public DeltaConfig.Config getConfig()
public String getName()
Copyright © 2023 The Apache Software Foundation. All rights reserved.