org.jboss.system
Class ServiceDynamicMBeanSupport
java.lang.Object
org.jboss.mx.util.JBossNotificationBroadcasterSupport (src)
org.jboss.system.ServiceMBeanSupport (src)
org.jboss.system.ServiceDynamicMBeanSupport
- All Implemented Interfaces:
- DynamicMBean (src) , MBeanRegistration (src) , NotificationBroadcaster (src) , NotificationEmitter (src) , Service (src) , ServiceMBean (src)
- Direct Known Subclasses:
- BeanShellScript (src) , RARDeployment (src)
- public class ServiceDynamicMBeanSupport
- extends ServiceMBeanSupport (src)
- implements DynamicMBean (src)
- See Also:
Fields inherited from interface org.jboss.system.ServiceMBean (src) |
CREATE_EVENT, CREATED, DESTROY_EVENT, DESTROYED, FAILED, REGISTERED, START_EVENT, STARTED, STARTING, states, STOP_EVENT, STOPPED, STOPPING, UNREGISTERED |
Methods inherited from class org.jboss.system.ServiceMBeanSupport (src) |
create, createService, destroy, destroyService, getLog, getName, getNextNotificationSequenceNumber, getObjectName, getServer, getServiceName, getState, getStateString, jbossInternalCreate, jbossInternalDescription, jbossInternalDestroy, jbossInternalLifecycle, jbossInternalStart, jbossInternalStop, postDeregister, postRegister, preDeregister, preRegister, start, startService, stop, stopService |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ServiceDynamicMBeanSupport
public ServiceDynamicMBeanSupport()
ServiceDynamicMBeanSupport
public ServiceDynamicMBeanSupport(java.lang.Class type)
ServiceDynamicMBeanSupport
public ServiceDynamicMBeanSupport(java.lang.String category)
ServiceDynamicMBeanSupport
public ServiceDynamicMBeanSupport(Logger (src) log)
getAttribute
public java.lang.Object getAttribute(java.lang.String attribute)
throws AttributeNotFoundException (src) ,
MBeanException (src) ,
ReflectionException (src)
- Description copied from interface:
DynamicMBean (src)
- Returns the value of the attribute with the name matching the
passed string.
- Specified by:
getAttribute
in interface DynamicMBean (src)
- Parameters:
attribute
- the name of the attribute.
- Returns:
- the value of the attribute.
- Throws:
MBeanException (src)
- wraps any error thrown by the resource when
getting the attribute.
AttributeNotFoundException (src)
- when there is no such attribute.
ReflectionException (src)
- wraps any error invoking the resource.
invoke
public java.lang.Object invoke(java.lang.String actionName,
java.lang.Object[] params,
java.lang.String[] signature)
throws MBeanException (src) ,
ReflectionException (src)
- Description copied from interface:
DynamicMBean (src)
- Invokes a resource operation.
- Specified by:
invoke
in interface DynamicMBean (src)
- Parameters:
actionName
- the name of the operation to perform.params
- the parameters to pass to the operation.signature
- the signartures of the parameters.
- Returns:
- the result of the operation.
- Throws:
MBeanException (src)
- wraps any error thrown by the resource when
performing the operation.
ReflectionException (src)
- wraps any error invoking the resource.
setAttribute
public void setAttribute(Attribute (src) attribute)
throws AttributeNotFoundException (src) ,
InvalidAttributeValueException (src) ,
MBeanException (src) ,
ReflectionException (src)
- Description copied from interface:
DynamicMBean (src)
- Sets the value of an attribute. The attribute and new value are
passed in the name value pair
Attribute
(src) .
- Specified by:
setAttribute
in interface DynamicMBean (src)
- Parameters:
attribute
- the name and new value of the attribute.
- Throws:
InvalidAttributeValueException (src)
- when the new value cannot be
converted to the type of the attribute.
AttributeNotFoundException (src)
- when there is no such attribute.
MBeanException (src)
- wraps any error thrown by the resource when
setting the new value.
ReflectionException (src)
- wraps any error invoking the resource.- See Also:
Attribute
(src)
setAttributes
public AttributeList (src) setAttributes(AttributeList (src) attributes)
- Description copied from interface:
DynamicMBean (src)
- Sets the values of the attributes passed as an
AttributeList
(src) of name and new value pairs.
- Specified by:
setAttributes
in interface DynamicMBean (src)
- Parameters:
attributes
- the name an new value pairs.
- Returns:
- an
AttributeList
(src) of name and value pairs
that were actually set.
getAttributes
public AttributeList (src) getAttributes(java.lang.String[] attributes)
- Description copied from interface:
DynamicMBean (src)
- Returns the values of the attributes with names matching the
passed string array.
- Specified by:
getAttributes
in interface DynamicMBean (src)
- Parameters:
attributes
- the names of the attribute.
- Returns:
- an
AttributeList
(src) of name and value pairs.
getMBeanInfo
public MBeanInfo (src) getMBeanInfo()
- Description copied from interface:
DynamicMBean (src)
- Returns the management interface that describes this dynamic resource.
It is the responsibility of the implementation to make sure the
description is accurate.
- Specified by:
getMBeanInfo
in interface DynamicMBean (src)
- Returns:
- the management interface.
getInternalDescription
protected java.lang.String getInternalDescription()
getInternalConstructorInfo
protected MBeanConstructorInfo (src) [] getInternalConstructorInfo()
getInternalAttributeInfo
protected MBeanAttributeInfo (src) [] getInternalAttributeInfo()
getInternalOperationInfo
protected MBeanOperationInfo (src) [] getInternalOperationInfo()
getInternalNotificationInfo
protected MBeanNotificationInfo (src) [] getInternalNotificationInfo()
getInternalAttribute
protected java.lang.Object getInternalAttribute(java.lang.String attribute)
throws AttributeNotFoundException (src) ,
MBeanException (src) ,
ReflectionException (src)
- Throws:
AttributeNotFoundException (src)
MBeanException (src)
ReflectionException (src)
setInternalAttribute
protected void setInternalAttribute(Attribute (src) attribute)
throws AttributeNotFoundException (src) ,
InvalidAttributeValueException (src) ,
MBeanException (src) ,
ReflectionException (src)
- Throws:
AttributeNotFoundException (src)
InvalidAttributeValueException (src)
MBeanException (src)
ReflectionException (src)
internalInvoke
protected java.lang.Object internalInvoke(java.lang.String actionName,
java.lang.Object[] params,
java.lang.String[] signature)
throws MBeanException (src) ,
ReflectionException (src)
- Throws:
MBeanException (src)
ReflectionException (src)