jsr.daemon
Interface Daemon

All Known Subinterfaces:
Pausable
All Known Implementing Classes:
GenericDaemon

public interface Daemon

interface supplied by daemons in order to be hosted by a daemon container


Method Summary
 void destroy()
          destruction method to be called via a daemon control interface method has to be implemented by a daemon in order to be shutdown if applicable
 DaemonConfig getDaemonConfig()
          access method for obtaining the configuration interface of a daemon
 java.lang.String getDaemonInfo()
          descriptive information to be supplied by a daemon
 void init()
          initialization method to be called via a daemon control interface method has to be implemented by a daemon in order to be initialized if applicable
 boolean isActive()
          activity state indication of a daemon method has to be implemented by a daemon for documenting its current activity state
 

Method Detail

init

public void init()
          throws DaemonException
initialization method to be called via a daemon control interface method has to be implemented by a daemon in order to be initialized if applicable
Throws:
DaemonException - thrown by an implementing daemon if initialization fails

destroy

public void destroy()
destruction method to be called via a daemon control interface method has to be implemented by a daemon in order to be shutdown if applicable

isActive

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

getDaemonInfo

public java.lang.String getDaemonInfo()
descriptive information to be supplied by a daemon
Returns:
description of the implementing daemon

getDaemonConfig

public DaemonConfig getDaemonConfig()
access method for obtaining the configuration interface of a daemon
Returns:
configuration interface of the implementing daemon