|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.apache.turbine.services.BaseInitable
org.apache.turbine.services.BaseService
org.apache.turbine.services.TurbineBaseService
org.apache.jetspeed.services.daemonfactory.JetspeedDaemonFactoryService
| Field Summary | |
static java.lang.String |
BADURLMANAGERDAEMON_KEY
|
static java.lang.String |
DISKCACHEDAEMON_KEY
|
static java.lang.String |
FEEDDAEMON_KEY
|
| Fields inherited from class org.apache.turbine.services.BaseService |
configuration, name, properties, serviceBroker |
| Fields inherited from class org.apache.turbine.services.BaseInitable |
initableBroker, isInitialized |
| Fields inherited from interface org.apache.jetspeed.services.daemonfactory.DaemonFactoryService |
SERVICE_NAME |
| Constructor Summary | |
JetspeedDaemonFactoryService()
|
|
| Method Summary | |
Daemon |
getDaemon(DaemonEntry entry)
Allows a Daemon to define its Thread priority through a factory. |
Daemon |
getDaemon(java.lang.String classname)
Get a daemon with the given classname. |
DaemonContext |
getDaemonContext()
|
DaemonEntry[] |
getDaemonEntries()
Get the current known DaemonEntries within the DaemonFactory |
DaemonEntry |
getDaemonEntry(java.lang.String name)
Given the name of a DaemonEntry... |
java.lang.String |
getMessage(DaemonEntry entry)
Get the last known message of the given DaemonEntry's processing |
int |
getResult(DaemonEntry entry)
Get the last known result of the given DaemonEntry's processing |
int |
getStatus(DaemonEntry entry)
|
void |
init()
Late init. |
void |
init(javax.servlet.ServletConfig config)
Perform initialization of the DaemonFactory. |
void |
process(DaemonEntry entry)
Kicks of processing of a Daemon. |
void |
start()
Starts any daemons that need processing. |
| Methods inherited from class org.apache.turbine.services.TurbineBaseService |
init, init, shutdown |
| Methods inherited from class org.apache.turbine.services.BaseService |
getConfiguration, getName, getProperties, getServiceBroker, setName, setServiceBroker |
| Methods inherited from class org.apache.turbine.services.BaseInitable |
getInit, getInitableBroker, setInit, setInitableBroker |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.apache.turbine.services.Service |
getConfiguration, getName, getProperties, setName, setServiceBroker |
| Methods inherited from interface org.apache.turbine.services.Initable |
getInit, init, setInitableBroker, shutdown |
| Field Detail |
public static final java.lang.String FEEDDAEMON_KEY
public static final java.lang.String DISKCACHEDAEMON_KEY
public static final java.lang.String BADURLMANAGERDAEMON_KEY
| Constructor Detail |
public JetspeedDaemonFactoryService()
| Method Detail |
public void init()
init in interface org.apache.turbine.services.Initablepublic void init(javax.servlet.ServletConfig config)
public 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()
start in interface DaemonFactoryService
public Daemon getDaemon(DaemonEntry entry)
throws DaemonException
getDaemon in interface DaemonFactoryServiceDaemonException
public Daemon getDaemon(java.lang.String classname)
throws DaemonException
getDaemon in interface DaemonFactoryServiceDaemonExceptiongetDaemon( DaemonEntry entry )public DaemonContext getDaemonContext()
getDaemonContext in interface DaemonFactoryService
public void process(DaemonEntry entry)
throws DaemonException
process in interface DaemonFactoryServiceDaemonExceptionpublic int getStatus(DaemonEntry entry)
getStatus in interface DaemonFactoryServicepublic int getResult(DaemonEntry entry)
getResult in interface DaemonFactoryServicepublic java.lang.String getMessage(DaemonEntry entry)
getMessage in interface DaemonFactoryServicepublic DaemonEntry[] getDaemonEntries()
getDaemonEntries in interface DaemonFactoryService
public DaemonEntry getDaemonEntry(java.lang.String name)
throws DaemonNotFoundException
getDaemonEntry in interface DaemonFactoryServiceDaemonNotFoundException
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||