org.ow2.jonas.workmanager.internal
Class JOnASWorkManagerService
java.lang.Object
javax.management.NotificationBroadcasterSupport
org.ow2.jonas.lib.reconfig.ReconfigEmitter
org.ow2.jonas.lib.service.AbsServiceImpl
org.ow2.jonas.workmanager.internal.JOnASWorkManagerService
- All Implemented Interfaces:
- NotificationBroadcaster, NotificationEmitter, Service, WorkManagerService
public class JOnASWorkManagerService
- extends AbsServiceImpl
- implements WorkManagerService
The JOnAS WorkManager
is returned by this service.
- Author:
- Guillaume Sauthier
Methods inherited from class org.ow2.jonas.lib.service.AbsServiceImpl |
convertToList, doInit, getDomainName, getJonasServerName, getName, getServerProperties, init, isStarted, setName, setServerProperties, start, stop, throwRequirementException, toString |
JOnASWorkManagerService
public JOnASWorkManagerService()
setThreadwaittimeout
public void setThreadwaittimeout(long waitingTime)
- Parameters:
waitingTime
- Thread wait timeout.
setMinworkthreads
public void setMinworkthreads(int minPoolSize)
- Parameters:
minPoolSize
- Minimum pool size.
setMaxworkthreads
public void setMaxworkthreads(int maxPoolSize)
- Parameters:
maxPoolSize
- Maximum pool size.
doStart
protected void doStart()
throws ServiceException
- Start a new
WorkManager
.
Abstract start-up method to be implemented by sub-classes.
- Specified by:
doStart
in class AbsServiceImpl
- Throws:
ServiceException
- service start-up failed
doStop
protected void doStop()
throws ServiceException
- Stop the
WorkManager
.
Abstract method for service stopping to be implemented by sub-classes.
- Specified by:
doStop
in class AbsServiceImpl
- Throws:
ServiceException
- service stopping failed
getWorkManager
public WorkManager getWorkManager()
-
- Specified by:
getWorkManager
in interface WorkManagerService
- Returns:
- Returns a
WorkManager
implementation.
setJmxService
public void setJmxService(JmxService jmxService)
- Parameters:
jmxService
- the jmxService to set
setTransactionService
public void setTransactionService(TransactionService transactionService)
- Parameters:
transactionService
- the transactionService to set
Copyright © 2010 OW2 Consortium. All Rights Reserved.