|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.management.NotificationBroadcasterSupport org.ow2.jonas.lib.reconfig.ReconfigEmitter org.ow2.jonas.lib.service.AbsServiceImpl org.ow2.jonas.workcleaner.internal.JOnASWorkCleanerService
public class JOnASWorkCleanerService
The JOnAS WorkCleaner is returned by this service.
Field Summary |
---|
Fields inherited from class org.ow2.jonas.lib.reconfig.ReconfigEmitter |
---|
RECONFIG_TYPE, SAVE_RECONFIG_TYPE |
Constructor Summary | |
---|---|
JOnASWorkCleanerService()
Create a JOnASWorkCleanerService. |
Method Summary | |
---|---|
protected void |
doStart()
Start a new WorkCleaner service. |
protected void |
doStop()
Stop the WorkCleaner. |
void |
executeTasks()
Execute the registered tasks. |
int |
getPeriod()
Returns the WorkCleaner clean period. |
void |
registerTask(CleanTask cleanTask)
Register a new clean task. |
void |
setJmxService(JmxService jmxService)
|
void |
setPeriod(int period)
|
void |
unregisterTask(CleanTask cleanTask)
Unregister a clean task. |
Methods inherited from class org.ow2.jonas.lib.service.AbsServiceImpl |
---|
convertToList, doInit, getDomainName, getJonasServerName, getName, getServerProperties, init, isStarted, setName, setServerProperties, start, stop, throwRequirementException, toString |
Methods inherited from class org.ow2.jonas.lib.reconfig.ReconfigEmitter |
---|
initLogger, sendReconfigNotification, sendSaveNotification |
Methods inherited from class javax.management.NotificationBroadcasterSupport |
---|
addNotificationListener, getNotificationInfo, handleNotification, removeNotificationListener, removeNotificationListener, sendNotification |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public JOnASWorkCleanerService()
Method Detail |
---|
public int getPeriod()
public void setPeriod(int period)
period
- Clean period used by the WorkCleanerprotected void doStart() throws ServiceException
doStart
in class AbsServiceImpl
ServiceException
- service start-up failedprotected void doStop() throws ServiceException
doStop
in class AbsServiceImpl
ServiceException
- service stopping failedpublic void registerTask(CleanTask cleanTask) throws WorkCleanerException
registerTask
in interface WorkCleanerService
cleanTask
- the task to add
WorkCleanerException
- if the task cannot be registredpublic void unregisterTask(CleanTask cleanTask) throws WorkCleanerException
unregisterTask
in interface WorkCleanerService
cleanTask
- The task to unregister
WorkCleanerException
- If the task cannot be unregisteredpublic void executeTasks()
executeTasks
in interface WorkCleanerServiceMBean
executeTasks
in interface WorkCleanerService
public void setJmxService(JmxService jmxService)
jmxService
- the jmxService to set
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |