|
||||||||||
| 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
public class RawDynamicInvoker
| Nested Class Summary |
|---|
| Nested classes/interfaces 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 DynamicMBeansetAttribute in class AbstractMBeanInvokerattribute - new attribute value
AttributeNotFoundException - if the requested attribute is not part
of the MBean's management interface
InvalidAttributeValueException - if the attribute contains a value
not suitable for the attribute
MBeanException - if setting the attribute value causes an
application exception
ReflectionException - if there was an error trying to set the
attribute value.Attributepublic AttributeList setAttributes(AttributeList attributes)
DynamicMBeanAttributeList of name and new value pairs.
setAttributes in interface DynamicMBeansetAttributes in class AbstractMBeanInvokerattributes - the name an new value pairs.
AttributeList of name and value pairs
that were actually set.
public Object getAttribute(String name)
throws AttributeNotFoundException,
MBeanException,
ReflectionException
AbstractMBeanInvoker
getAttribute in interface DynamicMBeangetAttribute in class AbstractMBeanInvokername - attribute name
AttributeNotFoundException - if the requested attribute is not part
of the MBean's management interface
MBeanException - if retrieving the attribute value causes an
application exception
ReflectionException - if there was an error trying to retrieve the
attribute valuepublic AttributeList getAttributes(String[] attributes)
DynamicMBean
getAttributes in interface DynamicMBeangetAttributes in class AbstractMBeanInvokerattributes - the names of the attribute.
AttributeList of name and value pairs.
public 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
MBeanException - if the target method raised a hecked exception
ReflectionException - if there was an error trying to resolve or
invoke the target methodpublic MBeanInfo getMBeanInfo()
DynamicMBean
getMBeanInfo in interface DynamicMBeangetMBeanInfo in class AbstractMBeanInvoker
public 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 AbstractMBeanInvokerException - for any error, the MBean is not registered.public void postRegister(Boolean b)
MBeanRegistration
postRegister in interface MBeanRegistrationpostRegister in class AbstractMBeanInvokerb - the MBeanServer passes true when the
MBean was registered, false otherwise.
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 | |||||||||