|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.jetspeed.services.daemonfactory.DaemonFactory
Constructor Summary | |
DaemonFactory()
|
Method Summary | |
static Daemon |
getDaemon(DaemonEntry entry)
Allows a Daemon to define its Thread priority through a factory. |
static Daemon |
getDaemon(java.lang.String classname)
Get a daemon with the given classname. |
static DaemonContext |
getDaemonContext()
|
static DaemonEntry[] |
getDaemonEntries()
Get the current known DaemonEntries within the DaemonFactory |
static DaemonEntry |
getDaemonEntry(java.lang.String name)
Given the name of a DaemonEntry... |
static java.lang.String |
getMessage(DaemonEntry entry)
Get the last known message of the given DaemonEntry's processing |
static int |
getResult(DaemonEntry entry)
Get the last known result of the given DaemonEntry's processing |
protected static DaemonFactoryService |
getService()
|
static int |
getStatus(DaemonEntry entry)
|
static void |
process(DaemonEntry entry)
Kicks of processing of a Daemon. |
static void |
start()
Starts any daemons that need processing. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DaemonFactory()
Method Detail |
protected static final DaemonFactoryService getService()
public static void start()
Starts any daemons that need processing.
This should be called right after init() so that any daemons that need to be started will be. If you need to do any per-daemon initialization then do so before calling start()
public static Daemon getDaemon(DaemonEntry entry) throws DaemonException
DaemonException
public static Daemon getDaemon(java.lang.String classname) throws DaemonException
DaemonException
getDaemon( DaemonEntry entry )
public static DaemonContext getDaemonContext()
public static void process(DaemonEntry entry) throws DaemonException
DaemonException
public static int getStatus(DaemonEntry entry)
public static int getResult(DaemonEntry entry)
public static java.lang.String getMessage(DaemonEntry entry)
public static DaemonEntry[] getDaemonEntries()
public static DaemonEntry getDaemonEntry(java.lang.String name) throws DaemonNotFoundException
DaemonNotFoundException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |