|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object mx4j.server.interceptor.DefaultMBeanServerInterceptor mx4j.server.interceptor.InvokerMBeanServerInterceptor
The last MBeanServer --$gt; MBean interceptor in the chain.
It calls the MBean instance; if the MBean is a dynamic MBean, the call is direct, otherwise the call is delegated
to an MBeanInvoker
.
Field Summary |
Fields inherited from interface mx4j.server.interceptor.MBeanServerInterceptor |
POST_DEREGISTER, POST_REGISTER_FALSE, POST_REGISTER_TRUE, PRE_DEREGISTER, PRE_REGISTER |
Constructor Summary | |
InvokerMBeanServerInterceptor(javax.management.MBeanServer outerServer)
Instantiates a new interceptor instance. |
Method Summary | |
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. |
Methods inherited from class mx4j.server.interceptor.DefaultMBeanServerInterceptor |
getLogger, getNext, setChain, setEnabled |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public InvokerMBeanServerInterceptor(javax.management.MBeanServer outerServer)
outerServer
- the MBeanServer
instance that is passed to
MBeanRegistration.preRegister(MBeanServer, ObjectName)
.Method Detail |
public java.lang.String getType()
getType
in interface InvokerMBeanServerInterceptorMBean
getType
in class DefaultMBeanServerInterceptor
public boolean isEnabled()
isEnabled
in interface InvokerMBeanServerInterceptorMBean
isEnabled
in class DefaultMBeanServerInterceptor
DefaultMBeanServerInterceptor.setEnabled(boolean)
public void addNotificationListener(MBeanMetaData metadata, javax.management.NotificationListener listener, javax.management.NotificationFilter filter, java.lang.Object handback)
MBeanServerInterceptor
addNotificationListener
in interface MBeanServerInterceptor
addNotificationListener
in class DefaultMBeanServerInterceptor
public void removeNotificationListener(MBeanMetaData metadata, javax.management.NotificationListener listener) throws javax.management.ListenerNotFoundException
MBeanServerInterceptor
removeNotificationListener
in interface MBeanServerInterceptor
removeNotificationListener
in class DefaultMBeanServerInterceptor
javax.management.ListenerNotFoundException
public void removeNotificationListener(MBeanMetaData metadata, javax.management.NotificationListener listener, javax.management.NotificationFilter filter, java.lang.Object handback) throws javax.management.ListenerNotFoundException
MBeanServerInterceptor
removeNotificationListener
in interface MBeanServerInterceptor
removeNotificationListener
in class DefaultMBeanServerInterceptor
javax.management.ListenerNotFoundException
public void instantiate(MBeanMetaData metadata, java.lang.String className, java.lang.String[] params, java.lang.Object[] args) throws javax.management.ReflectionException, javax.management.MBeanException
MBeanServerInterceptor
instantiate
in interface MBeanServerInterceptor
instantiate
in class DefaultMBeanServerInterceptor
javax.management.ReflectionException
javax.management.MBeanException
public void registration(MBeanMetaData metadata, int operation) throws javax.management.MBeanRegistrationException
MBeanServerInterceptor
MBeanRegistration
method on the MBean instance.
registration
in interface MBeanServerInterceptor
registration
in class DefaultMBeanServerInterceptor
javax.management.MBeanRegistrationException
public javax.management.MBeanInfo getMBeanInfo(MBeanMetaData metadata)
MBeanServerInterceptor
getMBeanInfo
in interface MBeanServerInterceptor
getMBeanInfo
in class DefaultMBeanServerInterceptor
public 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
MBeanServerInterceptor
invoke
in interface MBeanServerInterceptor
invoke
in class DefaultMBeanServerInterceptor
javax.management.MBeanException
javax.management.ReflectionException
public java.lang.Object getAttribute(MBeanMetaData metadata, java.lang.String attribute) throws javax.management.MBeanException, javax.management.AttributeNotFoundException, javax.management.ReflectionException
MBeanServerInterceptor
getAttribute
in interface MBeanServerInterceptor
getAttribute
in class DefaultMBeanServerInterceptor
javax.management.MBeanException
javax.management.AttributeNotFoundException
javax.management.ReflectionException
public void setAttribute(MBeanMetaData metadata, javax.management.Attribute attribute) throws javax.management.MBeanException, javax.management.AttributeNotFoundException, javax.management.InvalidAttributeValueException, javax.management.ReflectionException
MBeanServerInterceptor
setAttribute
in interface MBeanServerInterceptor
setAttribute
in class DefaultMBeanServerInterceptor
javax.management.MBeanException
javax.management.AttributeNotFoundException
javax.management.InvalidAttributeValueException
javax.management.ReflectionException
public javax.management.AttributeList getAttributes(MBeanMetaData metadata, java.lang.String[] attributes)
MBeanServerInterceptor
getAttributes
in interface MBeanServerInterceptor
getAttributes
in class DefaultMBeanServerInterceptor
public javax.management.AttributeList setAttributes(MBeanMetaData metadata, javax.management.AttributeList attributes)
MBeanServerInterceptor
setAttributes
in interface MBeanServerInterceptor
setAttributes
in class DefaultMBeanServerInterceptor
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |