Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
PojavLauncherTeam
GitHub Repository: PojavLauncherTeam/mobile
Path: blob/master/src/java.management/share/classes/com/sun/jmx/mbeanserver/SunJmxMBeanServer.java
41161 views
1
/*
2
* Copyright (c) 2000, 2008, Oracle and/or its affiliates. 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. Oracle designates this
8
* particular file as subject to the "Classpath" exception as provided
9
* by Oracle 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 Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
22
* or visit www.oracle.com if you need additional information or have any
23
* questions.
24
*/
25
26
package com.sun.jmx.mbeanserver;
27
28
import javax.management.MBeanServer;
29
import javax.management.MBeanServerDelegate;
30
31
32
/**
33
* Extends the MBeanServer interface to
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
40
extends MBeanServer {
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
**/
70
public MBeanServer getMBeanServerInterceptor();
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
**/
79
public void setMBeanServerInterceptor(MBeanServer interceptor);
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
}
91
92