org.apache.oozie.workflow.lite
Class LiteWorkflowApp

java.lang.Object
  extended by 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


Constructor Summary
LiteWorkflowApp(String name, String definition, StartNodeDef startNode)
           
 
Method Summary
 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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LiteWorkflowApp

public LiteWorkflowApp(String name,
                       String definition,
                       StartNodeDef startNode)
Method Detail

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.