History

My first initial commit with all of mine experimental changes.

Dmitry Kabak (userdima committed 13 years ago

Commit d37b88d1 parent 3f5b46618352 files · +2598093 −-8690Browse files

Showing the changes to java/pkg/com/sun/jmx/interceptor/MBeanServerInterceptor.java (1 of 18352 files). Show all

Unified · Split

java/pkg/com/sun/jmx/interceptor/MBeanServerInterceptor.java+130−0
@@ -0,0 +1,130 @@
1+/*
2+ * Copyright (c) 2002, 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.interceptor;
27+
28+
29+import java.io.ObjectInputStream;
30+import javax.management.InstanceNotFoundException;
31+import javax.management.MBeanException;
32+import javax.management.MBeanServer;
33+import javax.management.ObjectName;
34+import javax.management.OperationsException;
35+import javax.management.ReflectionException;
36+import javax.management.loading.ClassLoaderRepository;
37+
38+/**
39+ * <p>This interface specifies the behavior to be implemented by an
40+ * MBean Server Interceptor. An MBean Server Interceptor has
41+ * essentially the same interface as an MBean Server. An MBean Server
42+ * forwards received requests to its default interceptor, which may
43+ * handle them itself or forward them to other interceptors. The
44+ * default interceptor may be changed via the {@link
45+ * com.sun.jmx.mbeanserver.SunJmxMBeanServer#setMBeanServerInterceptor}
46+ * method.</p>
47+ *
48+ * <p>The initial default interceptor provides the standard MBean
49+ * Server behavior. It handles a collection of named MBeans, each
50+ * represented by a Java object. A replacement default interceptor
51+ * may build on this behavior, for instance by adding logging or
52+ * security checks, before forwarding requests to the initial default
53+ * interceptor. Or, it may route each request to one of a number of
54+ * sub-interceptors, for instance based on the {@link ObjectName} in
55+ * the request.</p>
56+ *
57+ * <p>An interceptor, default or not, need not implement MBeans as
58+ * Java objects, in the way that the initial default interceptor does.
59+ * It may instead implement <em>virtual MBeans</em>, which do not
60+ * exist as Java objects when they are not in use. For example, these
61+ * MBeans could be implemented by forwarding requests to a database,
62+ * or to a remote MBean server, or by performing system calls to query
63+ * or modify system resources.</p>
64+ *
65+ * @since 1.5
66+ */
67+public interface MBeanServerInterceptor extends MBeanServer {
68+ /**
69+ * This method should never be called.
70+ * Usually hrows UnsupportedOperationException.
71+ */
72+ public Object instantiate(String className)
73+ throws ReflectionException, MBeanException;
74+ /**
75+ * This method should never be called.
76+ * Usually throws UnsupportedOperationException.
77+ */
78+ public Object instantiate(String className, ObjectName loaderName)
79+ throws ReflectionException, MBeanException,
80+ InstanceNotFoundException;
81+ /**
82+ * This method should never be called.
83+ * Usually throws UnsupportedOperationException.
84+ */
85+ public Object instantiate(String className, Object[] params,
86+ String[] signature) throws ReflectionException, MBeanException;
87+
88+ /**
89+ * This method should never be called.
90+ * Usually throws UnsupportedOperationException.
91+ */
92+ public Object instantiate(String className, ObjectName loaderName,
93+ Object[] params, String[] signature)
94+ throws ReflectionException, MBeanException,
95+ InstanceNotFoundException;
96+
97+ /**
98+ * This method should never be called.
99+ * Usually throws UnsupportedOperationException.
100+ */
101+ @Deprecated
102+ public ObjectInputStream deserialize(ObjectName name, byte[] data)
103+ throws InstanceNotFoundException, OperationsException;
104+
105+ /**
106+ * This method should never be called.
107+ * Usually throws UnsupportedOperationException.
108+ */
109+ @Deprecated
110+ public ObjectInputStream deserialize(String className, byte[] data)
111+ throws OperationsException, ReflectionException;
112+
113+ /**
114+ * This method should never be called.
115+ * Usually hrows UnsupportedOperationException.
116+ */
117+ @Deprecated
118+ public ObjectInputStream deserialize(String className,
119+ ObjectName loaderName, byte[] data)
120+ throws InstanceNotFoundException, OperationsException,
121+ ReflectionException;
122+
123+ /**
124+ * This method should never be called.
125+ * Usually throws UnsupportedOperationException.
126+ */
127+ public ClassLoaderRepository getClassLoaderRepository();
128+
129+}
130+

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t