|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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, dynamicResource, 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 DynamicMBean
setAttribute
in class AbstractMBeanInvoker
attribute
- new 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
ReflectionException
- if there was an error trying to set the
attribute value.
InvalidAttributeValueException
- if the attribute contains a value
not suitable for the attributepublic AttributeList setAttributes(AttributeList attributes)
DynamicMBean
AttributeList
of name and new value pairs.
setAttributes
in interface DynamicMBean
setAttributes
in class AbstractMBeanInvoker
public Object getAttribute(String name) throws AttributeNotFoundException, MBeanException, ReflectionException
AbstractMBeanInvoker
getAttribute
in interface DynamicMBean
getAttribute
in class AbstractMBeanInvoker
name
- attribute name
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 value
MBeanException
- if retrieving the attribute value causes an
application exceptionpublic AttributeList getAttributes(String[] attributes)
DynamicMBean
getAttributes
in interface DynamicMBean
getAttributes
in class AbstractMBeanInvoker
public Object invoke(String name, Object[] args, String[] signature) throws MBeanException, ReflectionException
AbstractMBeanInvoker
invoke
in interface DynamicMBean
invoke
in class AbstractMBeanInvoker
name
- name of the target methodargs
- argumetns for the target methodsignature
- signature of the target method
ReflectionException
- if there was an error trying to resolve or
invoke the target method
MBeanException
- if the target method raised a hecked exceptionpublic MBeanInfo getMBeanInfo()
DynamicMBean
getMBeanInfo
in interface DynamicMBean
getMBeanInfo
in class AbstractMBeanInvoker
public ObjectName preRegister(MBeanServer server, ObjectName oname) throws Exception
AbstractMBeanInvoker
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
preRegister
in class AbstractMBeanInvoker
Exception
public void postRegister(Boolean b)
MBeanRegistration
postRegister
in interface MBeanRegistration
postRegister
in class AbstractMBeanInvoker
public void preDeregister() throws Exception
MBeanRegistration
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
preDeregister
in class AbstractMBeanInvoker
Exception
public void postDeregister()
MBeanRegistration
postDeregister
in interface MBeanRegistration
postDeregister
in class AbstractMBeanInvoker
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |