KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > mx4j > server > interceptor > MBeanServerInterceptorConfiguratorMBean


1 /*
2  * Copyright (C) The MX4J Contributors.
3  * All rights reserved.
4  *
5  * This software is distributed under the terms of the MX4J License version 1.0.
6  * See the terms of the MX4J License in the documentation provided with this software.
7  */

8
9 package mx4j.server.interceptor;
10
11 import javax.management.MBeanException JavaDoc;
12 import javax.management.ObjectName JavaDoc;
13
14 /**
15  * Management interface for the MBeanServerInterceptorConfigurator MBean.
16  *
17  * @version $Revision: 1.6 $
18  */

19 public interface MBeanServerInterceptorConfiguratorMBean
20 {
21    /**
22     * Appends the given interceptor, provided by the client, to the existing interceptor chain.
23     *
24     * @see #registerInterceptor
25     */

26    public void addInterceptor(MBeanServerInterceptor interceptor);
27
28    /**
29     * Appends the given interceptor, provided by the client, to the existing interceptor chain and registers it as MBean.
30     *
31     * @see #addInterceptor
32     */

33    public void registerInterceptor(MBeanServerInterceptor interceptor, ObjectName JavaDoc name) throws MBeanException JavaDoc;
34
35    /**
36     * Removes all the interceptors added via {@link #addInterceptor(MBeanServerInterceptor interceptor)}.
37     *
38     * @see #addInterceptor
39     */

40    public void clearInterceptors();
41
42    /**
43     * Starts this configurator, so that the MBeanServer is now able to accept incoming calls.
44     *
45     * @see #stop
46     * @see #isRunning
47     */

48    public void start();
49
50    /**
51     * Stops this configurator, so that the MBeanServer is not able to accept incoming calls.
52     *
53     * @see #start
54     */

55    public void stop();
56
57    /**
58     * Returns whether this configurator is running and thus if the MBeanServer can accept incoming calls
59     *
60     * @see #start
61     */

62    public boolean isRunning();
63 }
64
Popular Tags