fr.paris.lutece.portal.service.daemon
Class AppDaemonService

java.lang.Object
  extended by fr.paris.lutece.portal.service.daemon.AppDaemonService

public class AppDaemonService
extends java.lang.Object

this class provides methods to manage daemons services


Constructor Summary
AppDaemonService()
           
 
Method Summary
static Daemon getDaemon(java.lang.String strDaemonKey)
          Gets a daemon object from its key name
static java.util.Collection<DaemonEntry> getDaemonEntries()
          Get the current known DaemonEntries within the DaemonFactory
static void init()
          Performs initialization of the DaemonFactory.
static void registerDaemon(DaemonEntry entry)
           
static void shutdown()
          Performs the shutdown of the DaemonFactory.
static void startDaemon(java.lang.String strDaemonKey)
           
static void stopDaemon(java.lang.String strDaemonKey)
           
static void unregisterDaemon(java.lang.String strDaemonKey)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AppDaemonService

public AppDaemonService()
Method Detail

init

public static void init()
                 throws LuteceInitException
Performs initialization of the DaemonFactory. Note that this should return right away so that processing can continue (IE thread off everything)

Throws:
LuteceInitException

registerDaemon

public static void registerDaemon(DaemonEntry entry)
                           throws LuteceInitException
Throws:
LuteceInitException

unregisterDaemon

public static void unregisterDaemon(java.lang.String strDaemonKey)

startDaemon

public static void startDaemon(java.lang.String strDaemonKey)

stopDaemon

public static void stopDaemon(java.lang.String strDaemonKey)

getDaemonEntries

public static java.util.Collection<DaemonEntry> getDaemonEntries()
Get the current known DaemonEntries within the DaemonFactory

Returns:
the entries list of daemons declaration

shutdown

public static void shutdown()
Performs the shutdown of the DaemonFactory.


getDaemon

public static Daemon getDaemon(java.lang.String strDaemonKey)
Gets a daemon object from its key name

Returns:
The daemon


Copyright © 2007 Mairie de Paris. All Rights Reserved.