ch.tatool.core.element.handler.pause
Class DefaultExecutionPauseHandler

java.lang.Object
  extended by ch.tatool.core.element.AbstractPropertyHolder
      extended by ch.tatool.core.element.NodeImpl
          extended by ch.tatool.core.element.handler.pause.DefaultExecutionPauseHandler
All Implemented Interfaces:
ExecutionPauseHandler, PropertyHolder, Node, ExecutionPhaseListener

public class DefaultExecutionPauseHandler
extends NodeImpl
implements ExecutionPhaseListener, ExecutionPauseHandler

Pauses the execution between two elements.


Constructor Summary
DefaultExecutionPauseHandler()
           
 
Method Summary
 long getCurrentInterElementPauseDuration()
          Get the duration of the pause after the current element execution.
 long getDefaultInterElementPauseDuration()
          Get the default pause duration between two element executions.
 void processExecutionPhase(ExecutionContext event)
           
 void resetPauseDuration()
          Resets the pause duration.
 void setCurrentInterElementPauseDuration(long duration)
          Overwrite the duration for which the module is paused before execution the next element.
 void setDefaultInterElementPauseDuration(long duration)
          Set the default duration for which the execution is paused in between two elements.
 
Methods inherited from class ch.tatool.core.element.NodeImpl
assignParent, assignParent, assignParents, getId, getLocalId, getParent, setId, setLocalId, setParent
 
Methods inherited from class ch.tatool.core.element.AbstractPropertyHolder
clearProperties, getKeys, getProperty, removeProperty, setProperty
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface ch.tatool.element.Node
getParent, setParent
 
Methods inherited from interface ch.tatool.data.PropertyHolder
clearProperties, getId, getKeys, getProperty, removeProperty, setProperty
 

Constructor Detail

DefaultExecutionPauseHandler

public DefaultExecutionPauseHandler()
Method Detail

processExecutionPhase

public void processExecutionPhase(ExecutionContext event)
Specified by:
processExecutionPhase in interface ExecutionPhaseListener

setCurrentInterElementPauseDuration

public void setCurrentInterElementPauseDuration(long duration)
Overwrite the duration for which the module is paused before execution the next element.

Specified by:
setCurrentInterElementPauseDuration in interface ExecutionPauseHandler

getCurrentInterElementPauseDuration

public long getCurrentInterElementPauseDuration()
Description copied from interface: ExecutionPauseHandler
Get the duration of the pause after the current element execution. return the pause duration after the current

Specified by:
getCurrentInterElementPauseDuration in interface ExecutionPauseHandler

setDefaultInterElementPauseDuration

public void setDefaultInterElementPauseDuration(long duration)
Set the default duration for which the execution is paused in between two elements.

Specified by:
setDefaultInterElementPauseDuration in interface ExecutionPauseHandler

getDefaultInterElementPauseDuration

public long getDefaultInterElementPauseDuration()
Description copied from interface: ExecutionPauseHandler
Get the default pause duration between two element executions.

Specified by:
getDefaultInterElementPauseDuration in interface ExecutionPauseHandler
Returns:
the duration in milliseconds

resetPauseDuration

public void resetPauseDuration()
Resets the pause duration.



Copyright © 2012. All Rights Reserved.