org.jboss.soa.esb.listeners.lifecycle
Class ThreadedLifecycleController

java.lang.Object
  extended by org.jboss.soa.esb.listeners.lifecycle.LifecycleController
      extended by org.jboss.soa.esb.listeners.lifecycle.ThreadedLifecycleController
All Implemented Interfaces:
javax.management.DynamicMBean

public class ThreadedLifecycleController
extends LifecycleController

ThreadedLifecycleController is an MBean implementation that extends the base LifecycleController to enable alteration of the thread pool.

Author:
Kevin Conner

Field Summary
static java.lang.String MAXIMUM_THREAD_POOL_COUNT_ATTRIB
           
static java.lang.String MINIMUM_THREAD_POOL_COUNT_ATTRIB
           
static java.lang.String SET_MAXIMUM_THREAD_POOL_COUNT_ACTION
           
static java.lang.String SET_MINIMUM_THREAD_POOL_COUNT_ACTION
           
 
Fields inherited from class org.jboss.soa.esb.listeners.lifecycle.LifecycleController
LIFECYCLESTATE_ATTRIB, START_ACTION, STARTTIME_ATTRIB, STOP_ACTION, XML_ATTRIB
 
Constructor Summary
ThreadedLifecycleController(ThreadedManagedLifecycleAdapter f_threadedLifecycle)
          Constructor using lifecycle and config tree.
 
Method Summary
 java.lang.String getAttribute(java.lang.String name)
          Gets the attribute value.
protected  java.util.SortedSet<java.lang.String> getAttributeNames()
          Get the list of attribute names
 javax.management.AttributeList getAttributes(java.lang.String[] arg0)
          Get the list of attributes.
protected  java.util.List<javax.management.MBeanOperationInfo> getOperations()
          Get the list of operations
protected  java.lang.Object invokeOperation(java.lang.String method, java.lang.Object[] arg1, java.lang.Object[] arg2)
          Invoke the operations on the controller
 void setLifecycle(ManagedLifecycleAdapter f_mla)
          Lifecycle mutator.
 
Methods inherited from class org.jboss.soa.esb.listeners.lifecycle.LifecycleController
getListenerXMLAsHtml, getMBeanInfo, getObjectName, invoke, registerMBean, setAttribute, setAttributes, setStartTime, start, stop, unregisterMBean, unsetStartTime
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SET_MINIMUM_THREAD_POOL_COUNT_ACTION

public static final java.lang.String SET_MINIMUM_THREAD_POOL_COUNT_ACTION
See Also:
Constant Field Values

SET_MAXIMUM_THREAD_POOL_COUNT_ACTION

public static final java.lang.String SET_MAXIMUM_THREAD_POOL_COUNT_ACTION
See Also:
Constant Field Values

MINIMUM_THREAD_POOL_COUNT_ATTRIB

public static final java.lang.String MINIMUM_THREAD_POOL_COUNT_ATTRIB
See Also:
Constant Field Values

MAXIMUM_THREAD_POOL_COUNT_ATTRIB

public static final java.lang.String MAXIMUM_THREAD_POOL_COUNT_ATTRIB
See Also:
Constant Field Values
Constructor Detail

ThreadedLifecycleController

public ThreadedLifecycleController(ThreadedManagedLifecycleAdapter f_threadedLifecycle)
Constructor using lifecycle and config tree.

Parameters:
f_lifecycle - lifecycle
f_configtree - config tree
Method Detail

setLifecycle

public void setLifecycle(ManagedLifecycleAdapter f_mla)
Lifecycle mutator.

Overrides:
setLifecycle in class LifecycleController
Parameters:
f_mla - lifecycle

getAttributes

public javax.management.AttributeList getAttributes(java.lang.String[] arg0)
Get the list of attributes.

Specified by:
getAttributes in interface javax.management.DynamicMBean
Overrides:
getAttributes in class LifecycleController

getAttribute

public java.lang.String getAttribute(java.lang.String name)
                              throws javax.management.AttributeNotFoundException
Gets the attribute value.

Specified by:
getAttribute in interface javax.management.DynamicMBean
Overrides:
getAttribute in class LifecycleController
Throws:
javax.management.AttributeNotFoundException

getAttributeNames

protected java.util.SortedSet<java.lang.String> getAttributeNames()
Get the list of attribute names

Overrides:
getAttributeNames in class LifecycleController
Returns:
The list of attribute names

getOperations

protected java.util.List<javax.management.MBeanOperationInfo> getOperations()
Get the list of operations

Overrides:
getOperations in class LifecycleController
Returns:
The list of operations

invokeOperation

protected java.lang.Object invokeOperation(java.lang.String method,
                                           java.lang.Object[] arg1,
                                           java.lang.Object[] arg2)
                                    throws javax.management.ReflectionException
Invoke the operations on the controller

Overrides:
invokeOperation in class LifecycleController
Throws:
javax.management.ReflectionException