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
WorkflowException
public String getName()
WorkflowApp
getName
in interface WorkflowApp
public String getDefinition()
WorkflowApp
getDefinition
in interface WorkflowApp
public 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.Writable
IOException
public void readFields(DataInput dataInput) throws IOException
readFields
in interface org.apache.hadoop.io.Writable
IOException
Copyright © 2016 Apache Software Foundation. All rights reserved.