org.apache.falcon.rerun.handler
Class AbstractRerunHandler<T extends RerunEvent,M extends DelayedQueue<T>>

java.lang.Object
  extended by org.apache.falcon.rerun.handler.AbstractRerunHandler<T,M>
Type Parameters:
T - a rerun event
M - 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
           
 
Constructor Summary
AbstractRerunHandler()
           
 
Method Summary
 Entity getEntity(String entityType, String entityName)
           
 org.apache.falcon.entity.v0.process.Retry getRetry(Entity entity)
           
 AbstractWorkflowEngine getWfEngine()
           
abstract  void handleRerun(String cluster, String entityType, String entityName, String nominalTime, String runId, String wfId, long msgReceivedTime)
           
 void init(M aDelayQueue)
           
 boolean offerToQueue(T event)
           
 void reconnect()
           
 T takeFromQueue()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOG

protected static final org.apache.log4j.Logger LOG

delayQueue

protected M extends DelayedQueue<T> delayQueue
Constructor Detail

AbstractRerunHandler

public AbstractRerunHandler()
Method Detail

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.