|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.felix.mosgi.jmx.agent.mx4j.server.interceptor.DefaultMBeanServerInterceptor
public abstract class DefaultMBeanServerInterceptor
Base class for MBeanServer --> MBean interceptors.
Field Summary |
---|
Fields inherited from interface org.apache.felix.mosgi.jmx.agent.mx4j.server.interceptor.MBeanServerInterceptor |
---|
POST_DEREGISTER, POST_REGISTER_FALSE, POST_REGISTER_TRUE, PRE_DEREGISTER, PRE_REGISTER |
Constructor Summary | |
---|---|
protected |
DefaultMBeanServerInterceptor()
|
Method Summary | |
---|---|
void |
addNotificationListener(MBeanMetaData metadata,
NotificationListener listener,
NotificationFilter filter,
Object handback)
Adds the given notification listener to the MBean, along with the given filter and handback |
Object |
getAttribute(MBeanMetaData metadata,
String attribute)
Gets the specified attribute value from the MBean instance. |
AttributeList |
getAttributes(MBeanMetaData metadata,
String[] attributes)
Gets the specified attributes values from the MBean instance. |
protected Logger |
getLogger()
|
MBeanInfo |
getMBeanInfo(MBeanMetaData metadata)
Calls getMBeanInfo on the MBean instance (only on DynamicMBeans). |
protected MBeanServerInterceptor |
getNext()
|
abstract String |
getType()
Returns the type of this interceptor |
void |
instantiate(MBeanMetaData metadata,
String className,
String[] params,
Object[] args)
Instantiate the given className passing the given arguments to the constructor with the given signature |
Object |
invoke(MBeanMetaData metadata,
String method,
String[] params,
Object[] args)
Invokes the specified MBean operation on the MBean instance |
boolean |
isEnabled()
Returns whether this interceptor is enabled |
void |
registration(MBeanMetaData metadata,
int operation)
Calls the specified MBeanRegistration method on the MBean instance. |
void |
removeNotificationListener(MBeanMetaData metadata,
NotificationListener listener)
Removes the given notification listener from the MBean. |
void |
removeNotificationListener(MBeanMetaData metadata,
NotificationListener listener,
NotificationFilter filter,
Object handback)
Removes the given notification listener from the MBean, specified by the given filter and handback. |
void |
setAttribute(MBeanMetaData metadata,
Attribute attribute)
Sets the specified attribute value on the MBean instance. |
AttributeList |
setAttributes(MBeanMetaData metadata,
AttributeList attributes)
Sets the specified attributes values on the MBean instance. |
void |
setChain(List chain)
Sets the chain of interceptors on this interceptor. |
void |
setEnabled(boolean enabled)
Enables or disables this interceptor |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected DefaultMBeanServerInterceptor()
Method Detail |
---|
public boolean isEnabled()
isEnabled
in interface DefaultMBeanServerInterceptorMBean
setEnabled(boolean)
public void setEnabled(boolean enabled)
setEnabled
in interface DefaultMBeanServerInterceptorMBean
isEnabled()
public abstract String getType()
getType
in interface DefaultMBeanServerInterceptorMBean
getType
in interface MBeanServerInterceptor
protected MBeanServerInterceptor getNext()
public void setChain(List chain)
MBeanServerInterceptor
setChain
in interface MBeanServerInterceptor
chain
- The list of interceptorsprotected Logger getLogger()
public void addNotificationListener(MBeanMetaData metadata, NotificationListener listener, NotificationFilter filter, Object handback)
MBeanServerInterceptor
addNotificationListener
in interface MBeanServerInterceptor
public void removeNotificationListener(MBeanMetaData metadata, NotificationListener listener) throws ListenerNotFoundException
MBeanServerInterceptor
removeNotificationListener
in interface MBeanServerInterceptor
ListenerNotFoundException
public void removeNotificationListener(MBeanMetaData metadata, NotificationListener listener, NotificationFilter filter, Object handback) throws ListenerNotFoundException
MBeanServerInterceptor
removeNotificationListener
in interface MBeanServerInterceptor
ListenerNotFoundException
public void instantiate(MBeanMetaData metadata, String className, String[] params, Object[] args) throws ReflectionException, MBeanException
MBeanServerInterceptor
instantiate
in interface MBeanServerInterceptor
ReflectionException
MBeanException
public void registration(MBeanMetaData metadata, int operation) throws MBeanRegistrationException
MBeanServerInterceptor
MBeanRegistration
method on the MBean instance.
registration
in interface MBeanServerInterceptor
MBeanRegistrationException
public MBeanInfo getMBeanInfo(MBeanMetaData metadata)
MBeanServerInterceptor
getMBeanInfo
in interface MBeanServerInterceptor
public Object invoke(MBeanMetaData metadata, String method, String[] params, Object[] args) throws MBeanException, ReflectionException
MBeanServerInterceptor
invoke
in interface MBeanServerInterceptor
MBeanException
ReflectionException
public AttributeList getAttributes(MBeanMetaData metadata, String[] attributes)
MBeanServerInterceptor
getAttributes
in interface MBeanServerInterceptor
public AttributeList setAttributes(MBeanMetaData metadata, AttributeList attributes)
MBeanServerInterceptor
setAttributes
in interface MBeanServerInterceptor
public Object getAttribute(MBeanMetaData metadata, String attribute) throws MBeanException, AttributeNotFoundException, ReflectionException
MBeanServerInterceptor
getAttribute
in interface MBeanServerInterceptor
MBeanException
AttributeNotFoundException
ReflectionException
public void setAttribute(MBeanMetaData metadata, Attribute attribute) throws MBeanException, AttributeNotFoundException, InvalidAttributeValueException, ReflectionException
MBeanServerInterceptor
setAttribute
in interface MBeanServerInterceptor
MBeanException
AttributeNotFoundException
InvalidAttributeValueException
ReflectionException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |