org.objectweb.jonas.workmanager.internal
Class JOnASWorkManagerService

java.lang.Object
  extended by javax.management.NotificationBroadcasterSupport
      extended by org.objectweb.jonas.management.reconfig.emitter.ReconfigEmitter
          extended by org.objectweb.jonas.service.AbsServiceImpl
              extended by org.objectweb.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
static String MAX_WORK_THREADS
          Max Work Thread property name
static String MIN_WORK_THREADS
          Min Work Thread property name
static String THREAD_WAIT_TIMEOUT
          Thread Wait Timeout property name
 
Fields inherited from class org.objectweb.jonas.management.reconfig.emitter.ReconfigEmitter
RECONFIG_TYPE, SAVE_RECONFIG_TYPE
 
Constructor Summary
JOnASWorkManagerService()
           
 
Method Summary
protected  void doInit(Context ctx)
          Abstract initialization method to be implemented by sub-classes
protected  void doStart()
          Abstract start-up method to be implemented by sub-classes
protected  void doStop()
          Abstract method for service stopping to be implemented by sub-classes
 WorkManager getWorkManager()
          
 
Methods inherited from class org.objectweb.jonas.service.AbsServiceImpl
getDomainName, getJonasServerName, getName, init, isStarted, setName, start, stop
 
Methods inherited from class org.objectweb.jonas.management.reconfig.emitter.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, toString, wait, wait, wait
 
Methods inherited from interface org.objectweb.jonas.service.Service
getName, init, isStarted, setName, start, stop
 

Field Detail

MIN_WORK_THREADS

public static final String MIN_WORK_THREADS
Min Work Thread property name

See Also:
Constant Field Values

MAX_WORK_THREADS

public static final String MAX_WORK_THREADS
Max Work Thread property name

See Also:
Constant Field Values

THREAD_WAIT_TIMEOUT

public static final String THREAD_WAIT_TIMEOUT
Thread Wait Timeout property name

See Also:
Constant Field Values
Constructor Detail

JOnASWorkManagerService

public JOnASWorkManagerService()
Method Detail

doInit

protected void doInit(Context ctx)
               throws ServiceException
Description copied from class: AbsServiceImpl
Abstract initialization method to be implemented by sub-classes

Specified by:
doInit in class AbsServiceImpl
Parameters:
ctx - configuration of the service
Throws:
ServiceException - service initialization failed

doStart

protected void doStart()
                throws ServiceException
Description copied from class: AbsServiceImpl
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
Description copied from class: AbsServiceImpl
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.


Copyright © 2007 OW2 Consortium. All Rights Reserved.