org.ow2.jonas.workmanager.internal
Class JOnASWorkManagerService

java.lang.Object
  extended by javax.management.NotificationBroadcasterSupport
      extended by org.ow2.jonas.lib.reconfig.ReconfigEmitter
          extended by org.ow2.jonas.lib.service.AbsServiceImpl
              extended by 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

Field Summary
 
Fields inherited from class org.ow2.jonas.lib.reconfig.ReconfigEmitter
RECONFIG_TYPE, SAVE_RECONFIG_TYPE
 
Constructor Summary
JOnASWorkManagerService()
           
 
Method Summary
protected  void doStart()
          Start a new WorkManager.
protected  void doStop()
          Stop the WorkManager.
 WorkManager getWorkManager()
          
 void setJmxService(JmxService jmxService)
           
 void setMaxworkthreads(int maxPoolSize)
           
 void setMinworkthreads(int minPoolSize)
           
 void setThreadwaittimeout(long waitingTime)
           
 void setTransactionService(TransactionService transactionService)
           
 
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
 
Methods inherited from interface org.ow2.jonas.service.Service
getName, init, isStarted, setName, start, stop
 

Constructor Detail

JOnASWorkManagerService

public JOnASWorkManagerService()
Method Detail

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.