|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--mx4j.server.interceptor.MBeanServerInterceptorConfigurator
MBean that configures the MBeanServer --> MBean interceptor chain.
| Field Summary | |
static java.lang.String |
OBJECT_NAME
|
| Constructor Summary | |
MBeanServerInterceptorConfigurator(MBeanServer server)
Creates an instance of this configurator, for the given MBeanServer |
|
| Method Summary | |
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,
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. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final java.lang.String OBJECT_NAME
| Constructor Detail |
public MBeanServerInterceptorConfigurator(MBeanServer server)
| Method Detail |
public void addInterceptor(MBeanServerInterceptor interceptor)
addInterceptor in interface MBeanServerInterceptorConfiguratorMBeanregisterInterceptor(mx4j.server.interceptor.MBeanServerInterceptor, javax.management.ObjectName)
public void registerInterceptor(MBeanServerInterceptor interceptor,
ObjectName name)
throws MBeanException
registerInterceptor in interface MBeanServerInterceptorConfiguratorMBeanMBeanExceptionaddInterceptor(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()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||