|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.jboss.mx.server.AbstractMBeanInvoker
org.jboss.mx.server.RawDynamicInvoker
| Nested Class Summary |
| Nested classes inherited from class org.jboss.mx.server.AbstractMBeanInvoker |
AbstractMBeanInvoker.OperationKey |
| Field Summary |
| Fields inherited from class org.jboss.mx.server.AbstractMBeanInvoker |
attributeContextMap, constructorContextMap, getMBeanInfoCtx, info, log, operationContextMap, postDeregisterCtx, postRegisterCtx, preDeregisterCtx, preRegisterCtx, resourceEntry |
| Constructor Summary | |
RawDynamicInvoker(DynamicMBean resource)
|
|
| Method Summary | |
Object |
getAttribute(String name)
Returns an attribte value. |
AttributeList |
getAttributes(String[] attributes)
Returns the values of the attributes with names matching the passed string array. |
MBeanInfo |
getMBeanInfo()
Returns the management interface that describes this dynamic resource. |
Object |
invoke(String name,
Object[] args,
String[] signature)
Invokes the target resource. |
void |
postDeregister()
This method is called by the MBeanServer after deregistration takes place. |
void |
postRegister(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 |
preRegister(MBeanServer server,
ObjectName oname)
Initializes this invoker. |
void |
setAttribute(Attribute attribute)
Sets an attribute value. |
AttributeList |
setAttributes(AttributeList attributes)
Sets the values of the attributes passed as an AttributeList 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 resource)
| Method Detail |
public void setAttribute(Attribute attribute) throws AttributeNotFoundException, InvalidAttributeValueException, MBeanException, ReflectionException
AbstractMBeanInvoker
setAttribute in interface DynamicMBeansetAttribute in class AbstractMBeanInvokerattribute - new attribute value
ReflectionException - if there was an error trying to set the
attribute value.
AttributeNotFoundException - if the requested attribute is not part
of the MBean's management interface
MBeanException - if setting the attribute value causes an application
exception
InvalidAttributeValueException - if the attribute contains a value
not suitable for the attributepublic AttributeList setAttributes(AttributeList attributes)
DynamicMBeanAttributeList of name and new value pairs.
setAttributes in interface DynamicMBeansetAttributes in class AbstractMBeanInvokerpublic Object getAttribute(String name) throws AttributeNotFoundException, MBeanException, ReflectionException
AbstractMBeanInvoker
getAttribute in interface DynamicMBeangetAttribute in class AbstractMBeanInvokername - attribute name
MBeanException - if retrieving the attribute value causes an
application exception
AttributeNotFoundException - if the requested attribute is not
part of the MBean's management interface
ReflectionException - if there was an error trying to retrieve
the attribute valuepublic AttributeList getAttributes(String[] attributes)
DynamicMBean
getAttributes in interface DynamicMBeangetAttributes in class AbstractMBeanInvokerpublic Object invoke(String name, Object[] args, String[] signature) throws MBeanException, ReflectionException
AbstractMBeanInvoker
invoke in interface DynamicMBeaninvoke in class AbstractMBeanInvokername - name of the target methodargs - argumetns for the target methodsignature - signature of the target method
ReflectionException - if the target method raised an error
MBeanException - if the target method raised a hecked exceptionpublic MBeanInfo getMBeanInfo()
DynamicMBean
getMBeanInfo in interface DynamicMBeangetMBeanInfo in class AbstractMBeanInvokerpublic ObjectName preRegister(MBeanServer server, ObjectName oname) throws Exception
AbstractMBeanInvokerSubclasses 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 MBeanRegistrationpreRegister in class AbstractMBeanInvokerExceptionpublic void postRegister(Boolean b)
MBeanRegistration
postRegister in interface MBeanRegistrationpostRegister in class AbstractMBeanInvoker
public void preDeregister()
throws Exception
MBeanRegistrationThe MBean can throw an exception, this will stop the deregistration. The exception is forwarded to the invoker wrapped in an MBeanRegistrationException.
preDeregister in interface MBeanRegistrationpreDeregister in class AbstractMBeanInvokerExceptionpublic void postDeregister()
MBeanRegistration
postDeregister in interface MBeanRegistrationpostDeregister in class AbstractMBeanInvoker
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||