jsr.daemon.pausable
Interface Pausable

All Superinterfaces:
Daemon
All Known Implementing Classes:
PausableDaemon

public interface Pausable
extends Daemon

interface supplied by pausable daemons in order to be hosted by a daemon container Pausable daemons may be stopped and restarted during its life cycle.


Method Summary
 boolean isPaused()
          pause state indication of a daemon method has to be implemented by a pausable daemon for documenting its current pause state
 void start()
          start method to be called via a daemon control interface method has to be implemented by a pausable daemon in order to be started or restarted after pausing
 void stop()
          pause method to be called via a daemon control interface method has to be implemented by a pausable daemon in order to be paused if applicable
 
Methods inherited from interface jsr.daemon.Daemon
destroy, getDaemonConfig, getDaemonInfo, init, isActive
 

Method Detail

start

public void start()
           throws DaemonException
start method to be called via a daemon control interface method has to be implemented by a pausable daemon in order to be started or restarted after pausing
Throws:
DaemonException - thrown by an implementing daemon if starting or restarting fails

stop

public void stop()
pause method to be called via a daemon control interface method has to be implemented by a pausable daemon in order to be paused if applicable

isPaused

public boolean isPaused()
pause state indication of a daemon method has to be implemented by a pausable daemon for documenting its current pause state
Returns:
true if and only if the implementing pausable daemon is paused