com.raritantechnologies.searchApp.scheduler
Interface IPausable


public interface IPausable

Interface for IJobProcesses that can be paused (i.e. non 'atomic' processes). Used by Scheduler UI controllers and other processes to control the execution timing of job processes.


Method Summary
 boolean canPause(RaritanPageContext rpc)
           
 boolean canResult(RaritanPageContext rpc)
           
 boolean isPaused()
           
 boolean isPausing()
          if returns true: pause message has been received, waiting for an appropriate stable point to pause further operations.
 boolean isResuming()
          if returns true: resume message has been received, waiting for an appropriate stable point to resume operations.
 void pause(RaritanPageContext rpc)
          pause the command: The RaritanPageContext can be used to derive session based context information or to determine if a pause is possible.
 void resume(RaritanPageContext rpc)
           
 

Method Detail

canPause

public boolean canPause(RaritanPageContext rpc)

pause

public void pause(RaritanPageContext rpc)
pause the command: The RaritanPageContext can be used to derive session based context information or to determine if a pause is possible.


canResult

public boolean canResult(RaritanPageContext rpc)

resume

public void resume(RaritanPageContext rpc)

isPaused

public boolean isPaused()

isPausing

public boolean isPausing()
if returns true: pause message has been received, waiting for an appropriate stable point to pause further operations.


isResuming

public boolean isResuming()
if returns true: resume message has been received, waiting for an appropriate stable point to resume operations.