|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
MBeanServer --> MBean interceptor. These interceptors are used internally to implement MBeanServer functionality prior to call MBeans, and can be used to customize MBeanServer implementation by users.
Field Summary | |
static int |
POST_DEREGISTER
Constant used to specify the status of the MBean registration in registration(mx4j.server.MBeanMetaData, int) |
static int |
POST_REGISTER_FALSE
Constant used to specify the status of the MBean registration in registration(mx4j.server.MBeanMetaData, int) |
static int |
POST_REGISTER_TRUE
Constant used to specify the status of the MBean registration in registration(mx4j.server.MBeanMetaData, int) |
static int |
PRE_DEREGISTER
Constant used to specify the status of the MBean registration in registration(mx4j.server.MBeanMetaData, int) |
static int |
PRE_REGISTER
Constant used to specify the status of the MBean registration in registration(mx4j.server.MBeanMetaData, int) |
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()
A concise string that tells 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 |
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. |
void |
setChain(java.util.List interceptors)
Sets the chain of interceptors on this interceptor. |
Field Detail |
public static final int PRE_REGISTER
registration(mx4j.server.MBeanMetaData, int)
public static final int POST_REGISTER_TRUE
registration(mx4j.server.MBeanMetaData, int)
public static final int POST_REGISTER_FALSE
registration(mx4j.server.MBeanMetaData, int)
public static final int PRE_DEREGISTER
registration(mx4j.server.MBeanMetaData, int)
public static final int POST_DEREGISTER
registration(mx4j.server.MBeanMetaData, int)
Method Detail |
public java.lang.String getType()
public void setChain(java.util.List interceptors)
interceptors
- The list of interceptorspublic void addNotificationListener(MBeanMetaData metadata, javax.management.NotificationListener listener, javax.management.NotificationFilter filter, java.lang.Object handback)
public void removeNotificationListener(MBeanMetaData metadata, javax.management.NotificationListener listener) throws javax.management.ListenerNotFoundException
javax.management.ListenerNotFoundException
public void removeNotificationListener(MBeanMetaData metadata, javax.management.NotificationListener listener, javax.management.NotificationFilter filter, java.lang.Object handback) throws javax.management.ListenerNotFoundException
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
javax.management.ReflectionException
javax.management.MBeanException
public void registration(MBeanMetaData metadata, int operation) throws javax.management.MBeanRegistrationException
MBeanRegistration
method on the MBean instance.
javax.management.MBeanRegistrationException
public javax.management.MBeanInfo getMBeanInfo(MBeanMetaData metadata)
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
javax.management.MBeanException
javax.management.ReflectionException
public javax.management.AttributeList getAttributes(MBeanMetaData metadata, java.lang.String[] attributes)
public javax.management.AttributeList setAttributes(MBeanMetaData metadata, javax.management.AttributeList attributes)
public java.lang.Object getAttribute(MBeanMetaData metadata, java.lang.String attribute) throws javax.management.MBeanException, javax.management.AttributeNotFoundException, javax.management.ReflectionException
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
javax.management.MBeanException
javax.management.AttributeNotFoundException
javax.management.InvalidAttributeValueException
javax.management.ReflectionException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |