public class InvokerMBeanServerInterceptor extends DefaultMBeanServerInterceptor implements InvokerMBeanServerInterceptorMBean
MBeanInvoker.POST_DEREGISTER, POST_REGISTER_FALSE, POST_REGISTER_TRUE, PRE_DEREGISTER, PRE_REGISTER| Constructor and Description |
|---|
InvokerMBeanServerInterceptor(javax.management.MBeanServer outerServer)
Instantiates a new interceptor instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addNotificationListener(MBeanMetaData metadata,
javax.management.NotificationListener listener,
javax.management.NotificationFilter filter,
java.lang.Object handback)
Adds the given notification listener to the MBean, along with the given filter and handback
|
java.lang.Object |
getAttribute(MBeanMetaData metadata,
java.lang.String attribute)
Gets the specified attribute value from the MBean instance.
|
javax.management.AttributeList |
getAttributes(MBeanMetaData metadata,
java.lang.String[] attributes)
Gets the specified attributes values from the MBean instance.
|
javax.management.MBeanInfo |
getMBeanInfo(MBeanMetaData metadata)
Calls getMBeanInfo on the MBean instance (only on DynamicMBeans).
|
java.lang.String |
getType()
Returns the type of this interceptor
|
void |
instantiate(MBeanMetaData metadata,
java.lang.String className,
java.lang.String[] params,
java.lang.Object[] args)
Instantiate the given className passing the given arguments to the constructor with the given signature
|
java.lang.Object |
invoke(MBeanMetaData metadata,
java.lang.String method,
java.lang.String[] params,
java.lang.Object[] args)
Invokes the specified MBean operation on the MBean instance
|
boolean |
isEnabled()
This interceptor is always enabled
|
void |
registration(MBeanMetaData metadata,
int operation)
Calls the specified
MBeanRegistration method on the MBean instance. |
void |
removeNotificationListener(MBeanMetaData metadata,
javax.management.NotificationListener listener)
Removes the given notification listener from the MBean.
|
void |
removeNotificationListener(MBeanMetaData metadata,
javax.management.NotificationListener listener,
javax.management.NotificationFilter filter,
java.lang.Object handback)
Removes the given notification listener from the MBean, specified by the given filter and handback.
|
void |
setAttribute(MBeanMetaData metadata,
javax.management.Attribute attribute)
Sets the specified attribute value on the MBean instance.
|
javax.management.AttributeList |
setAttributes(MBeanMetaData metadata,
javax.management.AttributeList attributes)
Sets the specified attributes values on the MBean instance.
|
getLogger, getNext, setChain, setEnabledpublic InvokerMBeanServerInterceptor(javax.management.MBeanServer outerServer)
outerServer - the MBeanServer instance that is passed to
MBeanRegistration.preRegister(MBeanServer, ObjectName).public java.lang.String getType()
getType in interface DefaultMBeanServerInterceptorMBeangetType in interface InvokerMBeanServerInterceptorMBeangetType in interface MBeanServerInterceptorgetType in class DefaultMBeanServerInterceptorpublic boolean isEnabled()
isEnabled in interface DefaultMBeanServerInterceptorMBeanisEnabled in interface InvokerMBeanServerInterceptorMBeanisEnabled in class DefaultMBeanServerInterceptorDefaultMBeanServerInterceptor.setEnabled(boolean)public void addNotificationListener(MBeanMetaData metadata, javax.management.NotificationListener listener, javax.management.NotificationFilter filter, java.lang.Object handback)
MBeanServerInterceptoraddNotificationListener in interface MBeanServerInterceptoraddNotificationListener in class DefaultMBeanServerInterceptorpublic void removeNotificationListener(MBeanMetaData metadata, javax.management.NotificationListener listener) throws javax.management.ListenerNotFoundException
MBeanServerInterceptorremoveNotificationListener in interface MBeanServerInterceptorremoveNotificationListener in class DefaultMBeanServerInterceptorjavax.management.ListenerNotFoundExceptionpublic void removeNotificationListener(MBeanMetaData metadata, javax.management.NotificationListener listener, javax.management.NotificationFilter filter, java.lang.Object handback) throws javax.management.ListenerNotFoundException
MBeanServerInterceptorremoveNotificationListener in interface MBeanServerInterceptorremoveNotificationListener in class DefaultMBeanServerInterceptorjavax.management.ListenerNotFoundExceptionpublic void instantiate(MBeanMetaData metadata, java.lang.String className, java.lang.String[] params, java.lang.Object[] args) throws javax.management.ReflectionException, javax.management.MBeanException
MBeanServerInterceptorinstantiate in interface MBeanServerInterceptorinstantiate in class DefaultMBeanServerInterceptorjavax.management.ReflectionExceptionjavax.management.MBeanExceptionpublic void registration(MBeanMetaData metadata, int operation) throws javax.management.MBeanRegistrationException
MBeanServerInterceptorMBeanRegistration method on the MBean instance.registration in interface MBeanServerInterceptorregistration in class DefaultMBeanServerInterceptorjavax.management.MBeanRegistrationExceptionpublic javax.management.MBeanInfo getMBeanInfo(MBeanMetaData metadata)
MBeanServerInterceptorgetMBeanInfo in interface MBeanServerInterceptorgetMBeanInfo in class DefaultMBeanServerInterceptorpublic java.lang.Object invoke(MBeanMetaData metadata, java.lang.String method, java.lang.String[] params, java.lang.Object[] args) throws javax.management.MBeanException, javax.management.ReflectionException
MBeanServerInterceptorinvoke in interface MBeanServerInterceptorinvoke in class DefaultMBeanServerInterceptorjavax.management.MBeanExceptionjavax.management.ReflectionExceptionpublic java.lang.Object getAttribute(MBeanMetaData metadata, java.lang.String attribute) throws javax.management.MBeanException, javax.management.AttributeNotFoundException, javax.management.ReflectionException
MBeanServerInterceptorgetAttribute in interface MBeanServerInterceptorgetAttribute in class DefaultMBeanServerInterceptorjavax.management.MBeanExceptionjavax.management.AttributeNotFoundExceptionjavax.management.ReflectionExceptionpublic void setAttribute(MBeanMetaData metadata, javax.management.Attribute attribute) throws javax.management.MBeanException, javax.management.AttributeNotFoundException, javax.management.InvalidAttributeValueException, javax.management.ReflectionException
MBeanServerInterceptorsetAttribute in interface MBeanServerInterceptorsetAttribute in class DefaultMBeanServerInterceptorjavax.management.MBeanExceptionjavax.management.AttributeNotFoundExceptionjavax.management.InvalidAttributeValueExceptionjavax.management.ReflectionExceptionpublic javax.management.AttributeList getAttributes(MBeanMetaData metadata, java.lang.String[] attributes)
MBeanServerInterceptorgetAttributes in interface MBeanServerInterceptorgetAttributes in class DefaultMBeanServerInterceptorpublic javax.management.AttributeList setAttributes(MBeanMetaData metadata, javax.management.AttributeList attributes)
MBeanServerInterceptorsetAttributes in interface MBeanServerInterceptorsetAttributes in class DefaultMBeanServerInterceptor