org.apache.falcon.converter
Class OozieProcessMapper

java.lang.Object
  extended by org.apache.falcon.converter.AbstractOozieEntityMapper<org.apache.falcon.entity.v0.process.Process>
      extended by org.apache.falcon.converter.OozieProcessMapper

public class OozieProcessMapper
extends AbstractOozieEntityMapper<org.apache.falcon.entity.v0.process.Process>

This class maps the Falcon entities into Oozie artifacts.


Field Summary
 
Fields inherited from class org.apache.falcon.converter.AbstractOozieEntityMapper
ACTUAL_TIME_EL, BUNDLE_JAXB_CONTEXT, COORD_JAXB_CONTEXT, DEFAULT_BROKER_MSG_TTL, FALCON_JAR_FILTER, HIVE_ACTION_JAXB_CONTEXT, MR_JOB_PRIORITY, MR_QUEUE_NAME, NOMINAL_TIME_EL, WORKFLOW_JAXB_CONTEXT
 
Constructor Summary
OozieProcessMapper(org.apache.falcon.entity.v0.process.Process entity)
           
 
Method Summary
 COORDINATORAPP createDefaultCoordinator(org.apache.falcon.entity.v0.cluster.Cluster cluster, Path bundlePath)
          Creates default oozie coordinator.
protected  void createWorkflow(org.apache.falcon.entity.v0.cluster.Cluster cluster, org.apache.falcon.entity.v0.process.Process process, org.apache.falcon.entity.v0.process.Workflow processWorkflow, String wfName, Path wfPath)
           
protected  List<COORDINATORAPP> getCoordinators(org.apache.falcon.entity.v0.cluster.Cluster cluster, Path bundlePath)
           
protected  Map<String,String> getEntityProperties()
           
protected  void marshalHiveAction(ACTION wfAction, JAXBElement<ACTION> actionjaxbElement)
           
protected  JAXBElement<ACTION> unMarshalHiveAction(ACTION wfAction)
           
 
Methods inherited from class org.apache.falcon.converter.AbstractOozieEntityMapper
addLibExtensionsToWorkflow, createCoordDefaultConfiguration, createCoordProperty, createHiveConf, getCoordConfig, getCoordinatorTemplate, getCoordPath, getEntity, getStoragePath, getWorkflowTemplate, map, marshal, marshal, marshal, marshal
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OozieProcessMapper

public OozieProcessMapper(org.apache.falcon.entity.v0.process.Process entity)
Method Detail

getCoordinators

protected List<COORDINATORAPP> getCoordinators(org.apache.falcon.entity.v0.cluster.Cluster cluster,
                                               Path bundlePath)
                                        throws FalconException
Specified by:
getCoordinators in class AbstractOozieEntityMapper<org.apache.falcon.entity.v0.process.Process>
Throws:
FalconException

createDefaultCoordinator

public COORDINATORAPP createDefaultCoordinator(org.apache.falcon.entity.v0.cluster.Cluster cluster,
                                               Path bundlePath)
                                        throws FalconException
Creates default oozie coordinator.

Parameters:
cluster - - Cluster for which the coordiantor app need to be created
bundlePath - - bundle path
Returns:
COORDINATORAPP
Throws:
FalconException - on Error

getEntityProperties

protected Map<String,String> getEntityProperties()
Specified by:
getEntityProperties in class AbstractOozieEntityMapper<org.apache.falcon.entity.v0.process.Process>

createWorkflow

protected void createWorkflow(org.apache.falcon.entity.v0.cluster.Cluster cluster,
                              org.apache.falcon.entity.v0.process.Process process,
                              org.apache.falcon.entity.v0.process.Workflow processWorkflow,
                              String wfName,
                              Path wfPath)
                       throws FalconException
Throws:
FalconException

unMarshalHiveAction

protected JAXBElement<ACTION> unMarshalHiveAction(ACTION wfAction)

marshalHiveAction

protected void marshalHiveAction(ACTION wfAction,
                                 JAXBElement<ACTION> actionjaxbElement)


Copyright © 2013-2014 Apache Software Foundation. All Rights Reserved.