org.apache.falcon.rerun.policy
Class FinalPolicy

java.lang.Object
  extended by org.apache.falcon.rerun.policy.AbstractRerunPolicy
      extended by org.apache.falcon.rerun.policy.FinalPolicy

public class FinalPolicy
extends AbstractRerunPolicy

An implementation of the Rerun policy that does rerun only once.


Constructor Summary
FinalPolicy()
           
 
Method Summary
 long getDelay(Frequency delay, Date nominalTime, Date cutOffTime)
           
 long getDelay(Frequency delay, int eventNumber)
           
 
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

FinalPolicy

public FinalPolicy()
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


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