org.apache.falcon.rerun.handler
Class AbstractRerunHandler<T extends RerunEvent,M extends DelayedQueue<T>>
java.lang.Object
org.apache.falcon.rerun.handler.AbstractRerunHandler<T,M>
- Type Parameters:
T
- a rerun eventM
- queue
- Direct Known Subclasses:
- LateRerunHandler, RetryHandler
public abstract class AbstractRerunHandler<T extends RerunEvent,M extends DelayedQueue<T>>
- extends Object
Base class for handling reruns.
Field Summary |
protected M |
delayQueue
|
protected static org.apache.log4j.Logger |
LOG
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LOG
protected static final org.apache.log4j.Logger LOG
delayQueue
protected M extends DelayedQueue<T> delayQueue
AbstractRerunHandler
public AbstractRerunHandler()
init
public void init(M aDelayQueue)
throws FalconException
- Throws:
FalconException
handleRerun
public abstract void handleRerun(String cluster,
String entityType,
String entityName,
String nominalTime,
String runId,
String wfId,
long msgReceivedTime)
getWfEngine
public AbstractWorkflowEngine getWfEngine()
offerToQueue
public boolean offerToQueue(T event)
throws FalconException
- Throws:
FalconException
takeFromQueue
public T takeFromQueue()
throws FalconException
- Throws:
FalconException
reconnect
public void reconnect()
throws FalconException
- Throws:
FalconException
getEntity
public Entity getEntity(String entityType,
String entityName)
throws FalconException
- Throws:
FalconException
getRetry
public org.apache.falcon.entity.v0.process.Retry getRetry(Entity entity)
throws FalconException
- Throws:
FalconException
Copyright © 2013-2014 Apache Software Foundation. All Rights Reserved.