org.jboss.system
Class ServiceDynamicMBeanSupport

java.lang.Object
  extended by org.jboss.mx.util.JBossNotificationBroadcasterSupport
      extended by org.jboss.system.ServiceMBeanSupport
          extended by org.jboss.system.ServiceDynamicMBeanSupport
All Implemented Interfaces:
DynamicMBean, MBeanRegistration, NotificationBroadcaster, NotificationEmitter, org.jboss.kernel.spi.dependency.KernelControllerContextAware, Service, ServiceMBean

public class ServiceDynamicMBeanSupport
extends ServiceMBeanSupport
implements DynamicMBean

Version:
$Revision: 81033 $

Revisions:

6 janv. 2003 Sacha Labourey:

Author:
Sacha Labourey.
See Also:

Field Summary
 
Fields inherited from class org.jboss.system.ServiceMBeanSupport
log, server, SERVICE_CONTROLLER_SIG, serviceName
 
Fields inherited from interface org.jboss.system.ServiceMBean
CREATE_EVENT, CREATED, DESTROY_EVENT, DESTROYED, FAILED, REGISTERED, START_EVENT, STARTED, STARTING, states, STOP_EVENT, STOPPED, STOPPING, UNREGISTERED
 
Constructor Summary
ServiceDynamicMBeanSupport()
           
ServiceDynamicMBeanSupport(Class type)
           
ServiceDynamicMBeanSupport(org.jboss.logging.Logger log)
           
ServiceDynamicMBeanSupport(String category)
           
 
Method Summary
 Object getAttribute(String attribute)
           
 AttributeList getAttributes(String[] attributes)
           
protected  Object getInternalAttribute(String attribute)
           
protected  MBeanAttributeInfo[] getInternalAttributeInfo()
           
protected  MBeanConstructorInfo[] getInternalConstructorInfo()
           
protected  String getInternalDescription()
           
protected  MBeanNotificationInfo[] getInternalNotificationInfo()
           
protected  MBeanOperationInfo[] getInternalOperationInfo()
           
 MBeanInfo getMBeanInfo()
           
protected  Object internalInvoke(String actionName, Object[] params, String[] signature)
           
 Object invoke(String actionName, Object[] params, String[] signature)
           
 void setAttribute(Attribute attribute)
           
 AttributeList setAttributes(AttributeList attributes)
           
protected  void setInternalAttribute(Attribute attribute)
           
 
Methods inherited from class org.jboss.system.ServiceMBeanSupport
create, createService, destroy, destroyService, getDeploymentInfo, getLog, getName, getNextNotificationSequenceNumber, getObjectName, getServer, getServiceName, getState, getStateString, jbossInternalCreate, jbossInternalDescription, jbossInternalDestroy, jbossInternalLifecycle, jbossInternalStart, jbossInternalStop, pojoChange, pojoCreate, pojoDestroy, pojoStart, pojoStop, postDeregister, postRegister, preDeregister, preRegister, setKernelControllerContext, start, startService, stop, stopService, unsetKernelControllerContext
 
Methods inherited from class org.jboss.mx.util.JBossNotificationBroadcasterSupport
addNotificationListener, getNotificationInfo, handleNotification, nextNotificationSequenceNumber, removeNotificationListener, removeNotificationListener, sendNotification
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServiceDynamicMBeanSupport

public ServiceDynamicMBeanSupport()

ServiceDynamicMBeanSupport

public ServiceDynamicMBeanSupport(Class type)

ServiceDynamicMBeanSupport

public ServiceDynamicMBeanSupport(String category)

ServiceDynamicMBeanSupport

public ServiceDynamicMBeanSupport(org.jboss.logging.Logger log)
Method Detail

getAttribute

public Object getAttribute(String attribute)
                    throws AttributeNotFoundException,
                           MBeanException,
                           ReflectionException
Specified by:
getAttribute in interface DynamicMBean
Throws:
AttributeNotFoundException
MBeanException
ReflectionException

invoke

public Object invoke(String actionName,
                     Object[] params,
                     String[] signature)
              throws MBeanException,
                     ReflectionException
Specified by:
invoke in interface DynamicMBean
Throws:
MBeanException
ReflectionException

setAttribute

public void setAttribute(Attribute attribute)
                  throws AttributeNotFoundException,
                         InvalidAttributeValueException,
                         MBeanException,
                         ReflectionException
Specified by:
setAttribute in interface DynamicMBean
Throws:
AttributeNotFoundException
InvalidAttributeValueException
MBeanException
ReflectionException

setAttributes

public AttributeList setAttributes(AttributeList attributes)
Specified by:
setAttributes in interface DynamicMBean

getAttributes

public AttributeList getAttributes(String[] attributes)
Specified by:
getAttributes in interface DynamicMBean

getMBeanInfo

public MBeanInfo getMBeanInfo()
Specified by:
getMBeanInfo in interface DynamicMBean

getInternalDescription

protected String getInternalDescription()

getInternalConstructorInfo

protected MBeanConstructorInfo[] getInternalConstructorInfo()

getInternalAttributeInfo

protected MBeanAttributeInfo[] getInternalAttributeInfo()

getInternalOperationInfo

protected MBeanOperationInfo[] getInternalOperationInfo()

getInternalNotificationInfo

protected MBeanNotificationInfo[] getInternalNotificationInfo()

getInternalAttribute

protected Object getInternalAttribute(String attribute)
                               throws AttributeNotFoundException,
                                      MBeanException,
                                      ReflectionException
Throws:
AttributeNotFoundException
MBeanException
ReflectionException

setInternalAttribute

protected void setInternalAttribute(Attribute attribute)
                             throws AttributeNotFoundException,
                                    InvalidAttributeValueException,
                                    MBeanException,
                                    ReflectionException
Throws:
AttributeNotFoundException
InvalidAttributeValueException
MBeanException
ReflectionException

internalInvoke

protected Object internalInvoke(String actionName,
                                Object[] params,
                                String[] signature)
                         throws MBeanException,
                                ReflectionException
Throws:
MBeanException
ReflectionException


Copyright © 2009 JBoss, a division of Red Hat, Inc.. All Rights Reserved.