|
||||||||||
PREV CLASS (src) NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.mx.server.AbstractMBeanInvoker (src)
org.jboss.mx.server.RawDynamicInvoker
Nested Class Summary |
Nested classes inherited from class org.jboss.mx.server.AbstractMBeanInvoker (src) |
AbstractMBeanInvoker.OperationKey (src) |
Field Summary |
Fields inherited from class org.jboss.mx.server.AbstractMBeanInvoker (src) |
attributeContextMap, constructorContextMap, dynamicResource, getMBeanInfoCtx, info, log, operationContextMap, postDeregisterCtx, postRegisterCtx, preDeregisterCtx, preRegisterCtx, resourceEntry |
Constructor Summary | |
RawDynamicInvoker(DynamicMBean (src) resource)
|
Method Summary | |
java.lang.Object |
getAttribute(java.lang.String name)
Returns an attribte value. |
AttributeList (src) |
getAttributes(java.lang.String[] attributes)
Returns the values of the attributes with names matching the passed string array. |
MBeanInfo (src) |
getMBeanInfo()
Returns the management interface that describes this dynamic resource. |
java.lang.Object |
invoke(java.lang.String name,
java.lang.Object[] args,
java.lang.String[] signature)
Invokes the target resource. |
void |
postDeregister()
This method is called by the MBeanServer after deregistration takes place. |
void |
postRegister(java.lang.Boolean b)
This method is called by the MBeanServer after registration takes place or when registration fails. |
void |
preDeregister()
This method is called by the MBeanServer before deregistration takes place. |
ObjectName (src) |
preRegister(MBeanServer (src) server,
ObjectName (src) oname)
Initializes this invoker. |
void |
setAttribute(Attribute (src) attribute)
Sets an attribute value. |
AttributeList (src) |
setAttributes(AttributeList (src) attributes)
Sets the values of the attributes passed as an AttributeList (src) of name and new value pairs. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public RawDynamicInvoker(DynamicMBean (src) resource)
Method Detail |
public void setAttribute(Attribute (src) attribute) throws AttributeNotFoundException (src) , InvalidAttributeValueException (src) , MBeanException (src) , ReflectionException (src)
AbstractMBeanInvoker (src)
setAttribute
in interface DynamicMBean (src)
setAttribute
in class AbstractMBeanInvoker (src)
attribute
- new attribute value
AttributeNotFoundException (src)
- if the requested attribute is not part
of the MBean's management interface
ReflectionException (src)
- if there was an error trying to set the
attribute value.
InvalidAttributeValueException (src)
- if the attribute contains a value
not suitable for the attribute
MBeanException (src)
- if setting the attribute value causes an
application exceptionpublic AttributeList (src) setAttributes(AttributeList (src) attributes)
DynamicMBean (src)
AttributeList
(src) of name and new value pairs.
setAttributes
in interface DynamicMBean (src)
setAttributes
in class AbstractMBeanInvoker (src)
public java.lang.Object getAttribute(java.lang.String name) throws AttributeNotFoundException (src) , MBeanException (src) , ReflectionException (src)
AbstractMBeanInvoker (src)
getAttribute
in interface DynamicMBean (src)
getAttribute
in class AbstractMBeanInvoker (src)
name
- attribute name
AttributeNotFoundException (src)
- if the requested attribute is not part
of the MBean's management interface
MBeanException (src)
- if retrieving the attribute value causes an
application exception
ReflectionException (src)
- if there was an error trying to retrieve the
attribute valuepublic AttributeList (src) getAttributes(java.lang.String[] attributes)
DynamicMBean (src)
getAttributes
in interface DynamicMBean (src)
getAttributes
in class AbstractMBeanInvoker (src)
public java.lang.Object invoke(java.lang.String name, java.lang.Object[] args, java.lang.String[] signature) throws MBeanException (src) , ReflectionException (src)
AbstractMBeanInvoker (src)
invoke
in interface DynamicMBean (src)
invoke
in class AbstractMBeanInvoker (src)
name
- name of the target methodargs
- argumetns for the target methodsignature
- signature of the target method
MBeanException (src)
- if the target method raised a hecked exception
ReflectionException (src)
- if there was an error trying to resolve or
invoke the target methodpublic MBeanInfo (src) getMBeanInfo()
DynamicMBean (src)
getMBeanInfo
in interface DynamicMBean (src)
getMBeanInfo
in class AbstractMBeanInvoker (src)
public ObjectName (src) preRegister(MBeanServer (src) server, ObjectName (src) oname) throws java.lang.Exception
AbstractMBeanInvoker (src)
Subclasses that override the preRegister method must make sure they call super.preRegister() in their implementation to ensure proper initialization of the invoker.
preRegister
in interface MBeanRegistration (src)
preRegister
in class AbstractMBeanInvoker (src)
java.lang.Exception
public void postRegister(java.lang.Boolean b)
MBeanRegistration (src)
postRegister
in interface MBeanRegistration (src)
postRegister
in class AbstractMBeanInvoker (src)
public void preDeregister() throws java.lang.Exception
MBeanRegistration (src)
The MBean can throw an exception, this will stop the deregistration. The exception is forwarded to the invoker wrapped in an MBeanRegistrationException.
preDeregister
in interface MBeanRegistration (src)
preDeregister
in class AbstractMBeanInvoker (src)
java.lang.Exception
public void postDeregister()
MBeanRegistration (src)
postDeregister
in interface MBeanRegistration (src)
postDeregister
in class AbstractMBeanInvoker (src)
|
||||||||||
PREV CLASS (src) NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |