public class LiteWorkflowApp extends Object implements org.apache.hadoop.io.Writable, WorkflowApp
| Constructor and Description |
|---|
LiteWorkflowApp(String name,
String definition,
StartNodeDef startNode) |
| Modifier and Type | Method and Description |
|---|---|
LiteWorkflowApp |
addNode(NodeDef node) |
boolean |
equals(LiteWorkflowApp other) |
String |
getDefinition()
Return the original workflow definition (normally XML).
|
String |
getName()
Return the name of teh workflow application.
|
NodeDef |
getNode(String name) |
Collection<NodeDef> |
getNodeDefs() |
int |
hashCode() |
void |
readFields(DataInput dataInput) |
void |
validateTransition(String name,
String transition) |
void |
validateWorkflowIntegrity() |
void |
write(DataOutput dataOutput) |
public LiteWorkflowApp(String name, String definition, StartNodeDef startNode)
public boolean equals(LiteWorkflowApp other)
public LiteWorkflowApp addNode(NodeDef node) throws WorkflowException
WorkflowExceptionpublic String getName()
WorkflowAppgetName in interface WorkflowApppublic String getDefinition()
WorkflowAppgetDefinition in interface WorkflowApppublic Collection<NodeDef> getNodeDefs()
public void validateWorkflowIntegrity()
public void validateTransition(String name, String transition)
public void write(DataOutput dataOutput) throws IOException
write in interface org.apache.hadoop.io.WritableIOExceptionpublic void readFields(DataInput dataInput) throws IOException
readFields in interface org.apache.hadoop.io.WritableIOExceptionCopyright © 2014 Apache Software Foundation. All Rights Reserved.