org.apache.oozie.workflow.lite
Class LiteWorkflowApp
java.lang.Object
org.apache.oozie.workflow.lite.LiteWorkflowApp
- All Implemented Interfaces:
- org.apache.hadoop.io.Writable, WorkflowApp
public class LiteWorkflowApp
- extends Object
- implements org.apache.hadoop.io.Writable, WorkflowApp
LiteWorkflowApp
public LiteWorkflowApp(String name,
String definition,
StartNodeDef startNode)
equals
public boolean equals(LiteWorkflowApp other)
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
addNode
public LiteWorkflowApp addNode(NodeDef node)
throws WorkflowException
- Throws:
WorkflowException
getName
public String getName()
- Description copied from interface:
WorkflowApp
- Return the name of teh workflow application.
- Specified by:
getName
in interface WorkflowApp
- Returns:
- the name of teh workflow application.
getDefinition
public String getDefinition()
- Description copied from interface:
WorkflowApp
- Return the original workflow definition (normally XML).
- Specified by:
getDefinition
in interface WorkflowApp
- Returns:
- the original workflow definition (normally XML).
getNodeDefs
public Collection<NodeDef> getNodeDefs()
getNode
public NodeDef getNode(String name)
validateWorkflowIntegrity
public void validateWorkflowIntegrity()
validateTransition
public void validateTransition(String name,
String transition)
write
public void write(DataOutput dataOutput)
throws IOException
- Specified by:
write
in interface org.apache.hadoop.io.Writable
- Throws:
IOException
readFields
public void readFields(DataInput dataInput)
throws IOException
- Specified by:
readFields
in interface org.apache.hadoop.io.Writable
- Throws:
IOException
Copyright © 2013 Apache Software Foundation. All Rights Reserved.