org.apache.falcon.workflow.engine
Class OozieWorkflowEngine
java.lang.Object
org.apache.falcon.workflow.engine.AbstractWorkflowEngine
org.apache.falcon.workflow.engine.OozieWorkflowEngine
public class OozieWorkflowEngine
- extends AbstractWorkflowEngine
Workflow engine which uses oozies APIs.
Method Summary |
String |
delete(Entity entity)
|
String |
delete(Entity entity,
String cluster)
|
protected Map<String,List<CoordinatorAction>> |
getCoordActions(Entity entity,
Date start,
Date end)
|
org.apache.falcon.resource.InstancesResult |
getJobDetails(String cluster,
String jobId)
|
org.apache.falcon.resource.InstancesResult |
getRunningInstances(Entity entity)
|
org.apache.falcon.resource.InstancesResult |
getStatus(Entity entity,
Date start,
Date end)
|
Properties |
getWorkflowProperties(String cluster,
String jobId)
|
String |
getWorkflowStatus(String cluster,
String jobId)
|
boolean |
isActive(Entity entity)
|
boolean |
isAlive(org.apache.falcon.entity.v0.cluster.Cluster cluster)
|
boolean |
isSuspended(Entity entity)
|
org.apache.falcon.resource.InstancesResult |
killInstances(Entity entity,
Date start,
Date end,
Properties props)
|
void |
reRun(String cluster,
String jobId,
Properties props)
|
org.apache.falcon.resource.InstancesResult |
reRunInstances(Entity entity,
Date start,
Date end,
Properties props)
|
String |
resume(Entity entity)
|
org.apache.falcon.resource.InstancesResult |
resumeInstances(Entity entity,
Date start,
Date end,
Properties props)
|
void |
schedule(Entity entity)
|
protected void |
sortCoordsByStartTime(List<CoordinatorJob> consideredCoords)
|
String |
suspend(Entity entity)
|
org.apache.falcon.resource.InstancesResult |
suspendInstances(Entity entity,
Date start,
Date end,
Properties props)
|
void |
update(Entity oldEntity,
Entity newEntity,
String cluster)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ENGINE
public static final String ENGINE
- See Also:
- Constant Field Values
OozieWorkflowEngine
public OozieWorkflowEngine()
isAlive
public boolean isAlive(org.apache.falcon.entity.v0.cluster.Cluster cluster)
throws FalconException
- Specified by:
isAlive
in class AbstractWorkflowEngine
- Throws:
FalconException
schedule
public void schedule(Entity entity)
throws FalconException
- Specified by:
schedule
in class AbstractWorkflowEngine
- Throws:
FalconException
isActive
public boolean isActive(Entity entity)
throws FalconException
- Specified by:
isActive
in class AbstractWorkflowEngine
- Throws:
FalconException
isSuspended
public boolean isSuspended(Entity entity)
throws FalconException
- Specified by:
isSuspended
in class AbstractWorkflowEngine
- Throws:
FalconException
suspend
public String suspend(Entity entity)
throws FalconException
- Specified by:
suspend
in class AbstractWorkflowEngine
- Throws:
FalconException
resume
public String resume(Entity entity)
throws FalconException
- Specified by:
resume
in class AbstractWorkflowEngine
- Throws:
FalconException
delete
public String delete(Entity entity)
throws FalconException
- Specified by:
delete
in class AbstractWorkflowEngine
- Throws:
FalconException
delete
public String delete(Entity entity,
String cluster)
throws FalconException
- Specified by:
delete
in class AbstractWorkflowEngine
- Throws:
FalconException
getRunningInstances
public org.apache.falcon.resource.InstancesResult getRunningInstances(Entity entity)
throws FalconException
- Specified by:
getRunningInstances
in class AbstractWorkflowEngine
- Throws:
FalconException
killInstances
public org.apache.falcon.resource.InstancesResult killInstances(Entity entity,
Date start,
Date end,
Properties props)
throws FalconException
- Specified by:
killInstances
in class AbstractWorkflowEngine
- Throws:
FalconException
reRunInstances
public org.apache.falcon.resource.InstancesResult reRunInstances(Entity entity,
Date start,
Date end,
Properties props)
throws FalconException
- Specified by:
reRunInstances
in class AbstractWorkflowEngine
- Throws:
FalconException
suspendInstances
public org.apache.falcon.resource.InstancesResult suspendInstances(Entity entity,
Date start,
Date end,
Properties props)
throws FalconException
- Specified by:
suspendInstances
in class AbstractWorkflowEngine
- Throws:
FalconException
resumeInstances
public org.apache.falcon.resource.InstancesResult resumeInstances(Entity entity,
Date start,
Date end,
Properties props)
throws FalconException
- Specified by:
resumeInstances
in class AbstractWorkflowEngine
- Throws:
FalconException
getStatus
public org.apache.falcon.resource.InstancesResult getStatus(Entity entity,
Date start,
Date end)
throws FalconException
- Specified by:
getStatus
in class AbstractWorkflowEngine
- Throws:
FalconException
getCoordActions
protected Map<String,List<CoordinatorAction>> getCoordActions(Entity entity,
Date start,
Date end)
throws FalconException
- Throws:
FalconException
sortCoordsByStartTime
protected void sortCoordsByStartTime(List<CoordinatorJob> consideredCoords)
update
public void update(Entity oldEntity,
Entity newEntity,
String cluster)
throws FalconException
- Specified by:
update
in class AbstractWorkflowEngine
- Throws:
FalconException
reRun
public void reRun(String cluster,
String jobId,
Properties props)
throws FalconException
- Specified by:
reRun
in class AbstractWorkflowEngine
- Throws:
FalconException
getWorkflowStatus
public String getWorkflowStatus(String cluster,
String jobId)
throws FalconException
- Specified by:
getWorkflowStatus
in class AbstractWorkflowEngine
- Throws:
FalconException
getWorkflowProperties
public Properties getWorkflowProperties(String cluster,
String jobId)
throws FalconException
- Specified by:
getWorkflowProperties
in class AbstractWorkflowEngine
- Throws:
FalconException
getJobDetails
public org.apache.falcon.resource.InstancesResult getJobDetails(String cluster,
String jobId)
throws FalconException
- Specified by:
getJobDetails
in class AbstractWorkflowEngine
- Throws:
FalconException
Copyright © 2013-2014 Apache Software Foundation. All Rights Reserved.