org.apache.falcon.converter
Class AbstractOozieEntityMapper<T extends Entity>
java.lang.Object
org.apache.falcon.converter.AbstractOozieEntityMapper<T>
- Type Parameters:
T
-
- Direct Known Subclasses:
- OozieFeedMapper, OozieProcessMapper
public abstract class AbstractOozieEntityMapper<T extends Entity>
- extends Object
Entity mapper base class that allows an entity to be mapped to oozie bundle.
Method Summary |
protected void |
addLibExtensionsToWorkflow(org.apache.falcon.entity.v0.cluster.Cluster cluster,
WORKFLOWAPP wf,
EntityType type,
String lifecycle)
|
protected Map<String,String> |
createCoordDefaultConfiguration(org.apache.falcon.entity.v0.cluster.Cluster cluster,
Path coordPath,
String coordName)
|
protected CONFIGURATION.Property |
createCoordProperty(String name,
String value)
|
protected void |
createHiveConf(FileSystem fs,
Path confPath,
String metastoreUrl,
String prefix)
|
protected CONFIGURATION |
getCoordConfig(Map<String,String> propMap)
|
protected abstract List<COORDINATORAPP> |
getCoordinators(org.apache.falcon.entity.v0.cluster.Cluster cluster,
Path bundlePath)
|
protected COORDINATORAPP |
getCoordinatorTemplate(String template)
|
protected Path |
getCoordPath(Path bundlePath,
String coordName)
|
protected T |
getEntity()
|
protected abstract Map<String,String> |
getEntityProperties()
|
protected String |
getStoragePath(Path path)
|
protected WORKFLOWAPP |
getWorkflowTemplate(String template)
|
boolean |
map(org.apache.falcon.entity.v0.cluster.Cluster cluster,
Path bundlePath)
|
protected void |
marshal(org.apache.falcon.entity.v0.cluster.Cluster cluster,
BUNDLEAPP bundle,
Path outPath)
|
protected String |
marshal(org.apache.falcon.entity.v0.cluster.Cluster cluster,
COORDINATORAPP coord,
Path outPath,
String name)
|
protected void |
marshal(org.apache.falcon.entity.v0.cluster.Cluster cluster,
JAXBElement<?> jaxbElement,
JAXBContext jaxbContext,
Path outPath)
|
protected void |
marshal(org.apache.falcon.entity.v0.cluster.Cluster cluster,
WORKFLOWAPP workflow,
Path outPath)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NOMINAL_TIME_EL
protected static final String NOMINAL_TIME_EL
- See Also:
- Constant Field Values
ACTUAL_TIME_EL
protected static final String ACTUAL_TIME_EL
- See Also:
- Constant Field Values
DEFAULT_BROKER_MSG_TTL
protected static final Long DEFAULT_BROKER_MSG_TTL
MR_QUEUE_NAME
protected static final String MR_QUEUE_NAME
- See Also:
- Constant Field Values
MR_JOB_PRIORITY
protected static final String MR_JOB_PRIORITY
- See Also:
- Constant Field Values
WORKFLOW_JAXB_CONTEXT
protected static final JAXBContext WORKFLOW_JAXB_CONTEXT
COORD_JAXB_CONTEXT
protected static final JAXBContext COORD_JAXB_CONTEXT
BUNDLE_JAXB_CONTEXT
protected static final JAXBContext BUNDLE_JAXB_CONTEXT
HIVE_ACTION_JAXB_CONTEXT
protected static final JAXBContext HIVE_ACTION_JAXB_CONTEXT
FALCON_JAR_FILTER
protected static final FalconPathFilter FALCON_JAR_FILTER
AbstractOozieEntityMapper
protected AbstractOozieEntityMapper(T entity)
getEntity
protected T getEntity()
getCoordPath
protected Path getCoordPath(Path bundlePath,
String coordName)
getEntityProperties
protected abstract Map<String,String> getEntityProperties()
map
public boolean map(org.apache.falcon.entity.v0.cluster.Cluster cluster,
Path bundlePath)
throws FalconException
- Throws:
FalconException
addLibExtensionsToWorkflow
protected void addLibExtensionsToWorkflow(org.apache.falcon.entity.v0.cluster.Cluster cluster,
WORKFLOWAPP wf,
EntityType type,
String lifecycle)
throws IOException
- Throws:
IOException
getCoordinators
protected abstract List<COORDINATORAPP> getCoordinators(org.apache.falcon.entity.v0.cluster.Cluster cluster,
Path bundlePath)
throws FalconException
- Throws:
FalconException
getCoordConfig
protected CONFIGURATION getCoordConfig(Map<String,String> propMap)
createCoordDefaultConfiguration
protected Map<String,String> createCoordDefaultConfiguration(org.apache.falcon.entity.v0.cluster.Cluster cluster,
Path coordPath,
String coordName)
createCoordProperty
protected CONFIGURATION.Property createCoordProperty(String name,
String value)
marshal
protected void marshal(org.apache.falcon.entity.v0.cluster.Cluster cluster,
JAXBElement<?> jaxbElement,
JAXBContext jaxbContext,
Path outPath)
throws FalconException
- Throws:
FalconException
marshal
protected String marshal(org.apache.falcon.entity.v0.cluster.Cluster cluster,
COORDINATORAPP coord,
Path outPath,
String name)
throws FalconException
- Throws:
FalconException
marshal
protected void marshal(org.apache.falcon.entity.v0.cluster.Cluster cluster,
BUNDLEAPP bundle,
Path outPath)
throws FalconException
- Throws:
FalconException
marshal
protected void marshal(org.apache.falcon.entity.v0.cluster.Cluster cluster,
WORKFLOWAPP workflow,
Path outPath)
throws FalconException
- Throws:
FalconException
getStoragePath
protected String getStoragePath(Path path)
getWorkflowTemplate
protected WORKFLOWAPP getWorkflowTemplate(String template)
throws FalconException
- Throws:
FalconException
getCoordinatorTemplate
protected COORDINATORAPP getCoordinatorTemplate(String template)
throws FalconException
- Throws:
FalconException
createHiveConf
protected void createHiveConf(FileSystem fs,
Path confPath,
String metastoreUrl,
String prefix)
throws IOException
- Throws:
IOException
Copyright © 2013-2014 Apache Software Foundation. All Rights Reserved.