author | dfuchs |
Thu, 04 Sep 2008 14:46:36 +0200 | |
changeset 1156 | bbc2d15aaf7a |
parent 2 | 90ce3da70b43 |
child 1247 | b4c26443dee5 |
permissions | -rw-r--r-- |
2 | 1 |
/* |
2 |
* Copyright 2000-2007 Sun Microsystems, Inc. All Rights Reserved. |
|
3 |
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
|
4 |
* |
|
5 |
* This code is free software; you can redistribute it and/or modify it |
|
6 |
* under the terms of the GNU General Public License version 2 only, as |
|
7 |
* published by the Free Software Foundation. Sun designates this |
|
8 |
* particular file as subject to the "Classpath" exception as provided |
|
9 |
* by Sun in the LICENSE file that accompanied this code. |
|
10 |
* |
|
11 |
* This code is distributed in the hope that it will be useful, but WITHOUT |
|
12 |
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
|
13 |
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
|
14 |
* version 2 for more details (a copy is included in the LICENSE file that |
|
15 |
* accompanied this code). |
|
16 |
* |
|
17 |
* You should have received a copy of the GNU General Public License version |
|
18 |
* 2 along with this work; if not, write to the Free Software Foundation, |
|
19 |
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
|
20 |
* |
|
21 |
* Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara, |
|
22 |
* CA 95054 USA or visit www.sun.com if you need additional information or |
|
23 |
* have any questions. |
|
24 |
*/ |
|
25 |
||
26 |
package com.sun.jmx.mbeanserver; |
|
27 |
||
28 |
import javax.management.MBeanServer; |
|
29 |
import javax.management.MBeanServerDelegate; |
|
30 |
||
31 |
||
32 |
/** |
|
1156
bbc2d15aaf7a
5072476: RFE: support cascaded (federated) MBean Servers
dfuchs
parents:
2
diff
changeset
|
33 |
* Extends the MBeanServer interface to |
2 | 34 |
* provide methods for getting the MetaData and MBeanServerInstantiator |
35 |
* objects associated with an MBeanServer. |
|
36 |
* |
|
37 |
* @since 1.5 |
|
38 |
*/ |
|
39 |
public interface SunJmxMBeanServer |
|
1156
bbc2d15aaf7a
5072476: RFE: support cascaded (federated) MBean Servers
dfuchs
parents:
2
diff
changeset
|
40 |
extends MBeanServer { |
2 | 41 |
|
42 |
/** |
|
43 |
* Return the MBeanInstantiator associated to this MBeanServer. |
|
44 |
* @exception UnsupportedOperationException if |
|
45 |
* {@link MBeanServerInterceptor}s |
|
46 |
* are not enabled on this object. |
|
47 |
* @see #interceptorsEnabled |
|
48 |
*/ |
|
49 |
public MBeanInstantiator getMBeanInstantiator(); |
|
50 |
||
51 |
/** |
|
52 |
* Tell whether {@link MBeanServerInterceptor}s are enabled on this |
|
53 |
* object. |
|
54 |
* @return <code>true</code> if {@link MBeanServerInterceptor}s are |
|
55 |
* enabled. |
|
56 |
* @see #getMBeanServerInterceptor |
|
57 |
* @see #setMBeanServerInterceptor |
|
58 |
* @see #getMBeanInstantiator |
|
59 |
* @see com.sun.jmx.mbeanserver.JmxMBeanServerBuilder |
|
60 |
**/ |
|
61 |
public boolean interceptorsEnabled(); |
|
62 |
||
63 |
/** |
|
64 |
* Return the MBeanServerInterceptor. |
|
65 |
* @exception UnsupportedOperationException if |
|
66 |
* {@link MBeanServerInterceptor}s |
|
67 |
* are not enabled on this object. |
|
68 |
* @see #interceptorsEnabled |
|
69 |
**/ |
|
1156
bbc2d15aaf7a
5072476: RFE: support cascaded (federated) MBean Servers
dfuchs
parents:
2
diff
changeset
|
70 |
public MBeanServer getMBeanServerInterceptor(); |
2 | 71 |
|
72 |
/** |
|
73 |
* Set the MBeanServerInterceptor. |
|
74 |
* @exception UnsupportedOperationException if |
|
75 |
* {@link MBeanServerInterceptor}s |
|
76 |
* are not enabled on this object. |
|
77 |
* @see #interceptorsEnabled |
|
78 |
**/ |
|
1156
bbc2d15aaf7a
5072476: RFE: support cascaded (federated) MBean Servers
dfuchs
parents:
2
diff
changeset
|
79 |
public void setMBeanServerInterceptor(MBeanServer interceptor); |
2 | 80 |
|
81 |
/** |
|
82 |
* <p>Return the MBeanServerDelegate representing the MBeanServer. |
|
83 |
* Notifications can be sent from the MBean server delegate using |
|
84 |
* the method {@link MBeanServerDelegate#sendNotification} |
|
85 |
* in the returned object.</p> |
|
86 |
* |
|
87 |
*/ |
|
88 |
public MBeanServerDelegate getMBeanServerDelegate(); |
|
89 |
||
90 |
} |