public class MBeanServerInterceptorConfigurator extends java.lang.Object implements MBeanServerInterceptorConfiguratorMBean
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
OBJECT_NAME |
| Constructor and Description |
|---|
MBeanServerInterceptorConfigurator(javax.management.MBeanServer server)
Creates an instance of this configurator, for the given MBeanServer
|
| Modifier and Type | Method and Description |
|---|---|
void |
addInterceptor(MBeanServerInterceptor interceptor)
Appends the given interceptor, provided by the client, to the existing interceptor chain.
|
void |
addPostInterceptor(MBeanServerInterceptor interceptor)
Adds the given interceptor at the end of the interceptor chain, after the custom interceptors that may be added
via
addInterceptor(mx4j.server.interceptor.MBeanServerInterceptor). |
void |
addPreInterceptor(MBeanServerInterceptor interceptor)
Adds the given interceptor at the beginning of the interceptor chain, before the custom interceptors that may be added
via
addInterceptor(mx4j.server.interceptor.MBeanServerInterceptor). |
void |
clearInterceptors()
Removes all the interceptors added via
addInterceptor(MBeanServerInterceptor interceptor). |
MBeanServerInterceptor |
getHeadInterceptor()
Returns the head interceptor of the interceptor chain.
|
boolean |
isRunning()
Returns whether this configurator is running and thus if the MBeanServer can accept incoming calls
|
void |
registerInterceptor(MBeanServerInterceptor interceptor,
javax.management.ObjectName name)
Appends the given interceptor, provided by the client, to the existing interceptor chain and registers it as MBean.
|
void |
start()
Starts this configurator, so that the MBeanServer is now able to accept incoming calls.
|
void |
stop()
Stops this configurator, so that the MBeanServer is not able to accept incoming calls.
|
public static final java.lang.String OBJECT_NAME
public MBeanServerInterceptorConfigurator(javax.management.MBeanServer server)
public void addInterceptor(MBeanServerInterceptor interceptor)
addInterceptor in interface MBeanServerInterceptorConfiguratorMBeanregisterInterceptor(mx4j.server.interceptor.MBeanServerInterceptor, javax.management.ObjectName)public void registerInterceptor(MBeanServerInterceptor interceptor, javax.management.ObjectName name) throws javax.management.MBeanException
registerInterceptor in interface MBeanServerInterceptorConfiguratorMBeanjavax.management.MBeanExceptionaddInterceptor(mx4j.server.interceptor.MBeanServerInterceptor)public void clearInterceptors()
addInterceptor(MBeanServerInterceptor interceptor).clearInterceptors in interface MBeanServerInterceptorConfiguratorMBeanaddInterceptor(mx4j.server.interceptor.MBeanServerInterceptor)public void addPreInterceptor(MBeanServerInterceptor interceptor)
addInterceptor(mx4j.server.interceptor.MBeanServerInterceptor).
This method is called by the MBeanServer during initialization, to configure the interceptors needed to work properly.public void addPostInterceptor(MBeanServerInterceptor interceptor)
addInterceptor(mx4j.server.interceptor.MBeanServerInterceptor).
This method is called by the MBeanServer during initialization, to configure the interceptors needed to work properly.public MBeanServerInterceptor getHeadInterceptor()
public void start()
start in interface MBeanServerInterceptorConfiguratorMBeanstop(),
isRunning()public void stop()
stop in interface MBeanServerInterceptorConfiguratorMBeanstart()public boolean isRunning()
isRunning in interface MBeanServerInterceptorConfiguratorMBeanstart()