org.apache.falcon.rerun.policy
Class ExpBackoffPolicy

java.lang.Object
  extended by org.apache.falcon.rerun.policy.AbstractRerunPolicy
      extended by org.apache.falcon.rerun.policy.ExpBackoffPolicy
Direct Known Subclasses:
PeriodicPolicy

public class ExpBackoffPolicy
extends AbstractRerunPolicy

An implementation of the Rerun policy that backs off exponentially.


Constructor Summary
ExpBackoffPolicy()
           
 
Method Summary
 long getDelay(Frequency delay, Date nominalTime, Date cutOffTime)
           
 long getDelay(Frequency delay, int eventNumber)
           
protected  int getPower()
           
 
Methods inherited from class org.apache.falcon.rerun.policy.AbstractRerunPolicy
addTime, getDurationInMilliSec
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExpBackoffPolicy

public ExpBackoffPolicy()
Method Detail

getDelay

public long getDelay(Frequency delay,
                     int eventNumber)
              throws FalconException
Specified by:
getDelay in class AbstractRerunPolicy
Throws:
FalconException

getDelay

public long getDelay(Frequency delay,
                     Date nominalTime,
                     Date cutOffTime)
              throws FalconException
Specified by:
getDelay in class AbstractRerunPolicy
Throws:
FalconException

getPower

protected int getPower()


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