com.ibm.jbatch.container.persistence
Class ItemCheckpointAlgorithm

java.lang.Object
  extended by com.ibm.jbatch.container.persistence.ItemCheckpointAlgorithm
All Implemented Interfaces:
CheckpointAlgorithm

public final class ItemCheckpointAlgorithm
extends Object
implements CheckpointAlgorithm


Constructor Summary
ItemCheckpointAlgorithm()
           
 
Method Summary
 void beginCheckpoint()
           
 int checkpointTimeout()
           
 void endCheckpoint()
           
 int getCheckpointTimeOut(int timeOut)
           
 boolean isReadyToCheckpoint()
           
 boolean isReadyToCheckpointItem()
           
 boolean isReadyToCheckpointTime()
           
 void setThreshold(int INthreshHold)
           
 void setThresholds(int itemthreshold, int timethreshold)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ItemCheckpointAlgorithm

public ItemCheckpointAlgorithm()
Method Detail

endCheckpoint

public void endCheckpoint()
                   throws Exception
Specified by:
endCheckpoint in interface CheckpointAlgorithm
Throws:
Exception

getCheckpointTimeOut

public int getCheckpointTimeOut(int timeOut)
                         throws Exception
Throws:
Exception

isReadyToCheckpointItem

public boolean isReadyToCheckpointItem()
                                throws Exception
Throws:
Exception

isReadyToCheckpointTime

public boolean isReadyToCheckpointTime()
                                throws Exception
Throws:
Exception

setThreshold

public void setThreshold(int INthreshHold)

isReadyToCheckpoint

public boolean isReadyToCheckpoint()
                            throws Exception
Specified by:
isReadyToCheckpoint in interface CheckpointAlgorithm
Throws:
Exception

setThresholds

public void setThresholds(int itemthreshold,
                          int timethreshold)

beginCheckpoint

public void beginCheckpoint()
                     throws Exception
Specified by:
beginCheckpoint in interface CheckpointAlgorithm
Throws:
Exception

checkpointTimeout

public int checkpointTimeout()
                      throws Exception
Specified by:
checkpointTimeout in interface CheckpointAlgorithm
Throws:
Exception


Copyright © 2013. All Rights Reserved.