org.apache.falcon.rerun.policy
Class ExpBackoffPolicy
java.lang.Object
org.apache.falcon.rerun.policy.AbstractRerunPolicy
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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ExpBackoffPolicy
public ExpBackoffPolicy()
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.