KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > objectweb > petals > jbi > routing > mock > MBeanServerMock


1 /**
2  * PETALS - PETALS Services Platform.
3  * Copyright (c) 2005 EBM Websourcing, http://www.ebmwebsourcing.com/
4  *
5  * This library is free software; you can redistribute it and/or
6  * modify it under the terms of the GNU Lesser General Public
7  * License as published by the Free Software Foundation; either
8  * version 2.1 of the License, or (at your option) any later version.
9  * This library is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12  * Lesser General Public License for more details.
13  *
14  * You should have received a copy of the GNU Lesser General Public
15  * License along with this library; if not, write to the Free Software
16  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17  *
18  * -------------------------------------------------------------------------
19  * $Id: MBeanServerMock.java 15:44:29 ddesjardins $
20  * -------------------------------------------------------------------------
21  */

22 package org.objectweb.petals.jbi.routing.mock;
23
24 import java.io.ObjectInputStream JavaDoc;
25 import java.util.Set JavaDoc;
26
27 import javax.management.Attribute JavaDoc;
28 import javax.management.AttributeList JavaDoc;
29 import javax.management.AttributeNotFoundException JavaDoc;
30 import javax.management.InstanceAlreadyExistsException JavaDoc;
31 import javax.management.InstanceNotFoundException JavaDoc;
32 import javax.management.IntrospectionException JavaDoc;
33 import javax.management.InvalidAttributeValueException JavaDoc;
34 import javax.management.ListenerNotFoundException JavaDoc;
35 import javax.management.MBeanException JavaDoc;
36 import javax.management.MBeanInfo JavaDoc;
37 import javax.management.MBeanRegistrationException JavaDoc;
38 import javax.management.MBeanServer JavaDoc;
39 import javax.management.NotCompliantMBeanException JavaDoc;
40 import javax.management.NotificationFilter JavaDoc;
41 import javax.management.NotificationListener JavaDoc;
42 import javax.management.ObjectInstance JavaDoc;
43 import javax.management.ObjectName JavaDoc;
44 import javax.management.OperationsException JavaDoc;
45 import javax.management.QueryExp JavaDoc;
46 import javax.management.ReflectionException JavaDoc;
47 import javax.management.loading.ClassLoaderRepository JavaDoc;
48
49 /**
50  * Mock object of the MBeanServer
51  * @author ddesjardins - eBMWebsourcing
52  */

53 public class MBeanServerMock implements MBeanServer JavaDoc{
54
55     public ObjectInstance JavaDoc createMBean(String JavaDoc className, ObjectName JavaDoc name) throws ReflectionException JavaDoc, InstanceAlreadyExistsException JavaDoc, MBeanRegistrationException JavaDoc, MBeanException JavaDoc, NotCompliantMBeanException JavaDoc {
56         return null;
57     }
58
59     public ObjectInstance JavaDoc createMBean(String JavaDoc className, ObjectName JavaDoc name, ObjectName JavaDoc loaderName) throws ReflectionException JavaDoc, InstanceAlreadyExistsException JavaDoc, MBeanRegistrationException JavaDoc, MBeanException JavaDoc, NotCompliantMBeanException JavaDoc, InstanceNotFoundException JavaDoc {
60         return null;
61     }
62
63     public ObjectInstance JavaDoc createMBean(String JavaDoc className, ObjectName JavaDoc name, Object JavaDoc[] params, String JavaDoc[] signature) throws ReflectionException JavaDoc, InstanceAlreadyExistsException JavaDoc, MBeanRegistrationException JavaDoc, MBeanException JavaDoc, NotCompliantMBeanException JavaDoc {
64         return null;
65     }
66
67     public ObjectInstance JavaDoc createMBean(String JavaDoc className, ObjectName JavaDoc name, ObjectName JavaDoc loaderName, Object JavaDoc[] params, String JavaDoc[] signature) throws ReflectionException JavaDoc, InstanceAlreadyExistsException JavaDoc, MBeanRegistrationException JavaDoc, MBeanException JavaDoc, NotCompliantMBeanException JavaDoc, InstanceNotFoundException JavaDoc {
68         return null;
69     }
70
71     public ObjectInstance JavaDoc registerMBean(Object JavaDoc object, ObjectName JavaDoc name) throws InstanceAlreadyExistsException JavaDoc, MBeanRegistrationException JavaDoc, NotCompliantMBeanException JavaDoc {
72         return null;
73     }
74
75     public void unregisterMBean(ObjectName JavaDoc name) throws InstanceNotFoundException JavaDoc, MBeanRegistrationException JavaDoc {
76     }
77
78     public ObjectInstance JavaDoc getObjectInstance(ObjectName JavaDoc name) throws InstanceNotFoundException JavaDoc {
79         return null;
80     }
81
82     public Set JavaDoc queryMBeans(ObjectName JavaDoc name, QueryExp JavaDoc query) {
83         return null;
84     }
85
86     public Set JavaDoc queryNames(ObjectName JavaDoc name, QueryExp JavaDoc query) {
87         return null;
88     }
89
90     public boolean isRegistered(ObjectName JavaDoc name) {
91         return false;
92     }
93
94     public Integer JavaDoc getMBeanCount() {
95         return null;
96     }
97
98     public Object JavaDoc getAttribute(ObjectName JavaDoc name, String JavaDoc attribute) throws MBeanException JavaDoc, AttributeNotFoundException JavaDoc, InstanceNotFoundException JavaDoc, ReflectionException JavaDoc {
99         return null;
100     }
101
102     public AttributeList JavaDoc getAttributes(ObjectName JavaDoc name, String JavaDoc[] attributes) throws InstanceNotFoundException JavaDoc, ReflectionException JavaDoc {
103         return null;
104     }
105
106     public void setAttribute(ObjectName JavaDoc name, Attribute JavaDoc attribute) throws InstanceNotFoundException JavaDoc, AttributeNotFoundException JavaDoc, InvalidAttributeValueException JavaDoc, MBeanException JavaDoc, ReflectionException JavaDoc {
107     }
108
109     public AttributeList JavaDoc setAttributes(ObjectName JavaDoc name, AttributeList JavaDoc attributes) throws InstanceNotFoundException JavaDoc, ReflectionException JavaDoc {
110         return null;
111     }
112
113     public Object JavaDoc invoke(ObjectName JavaDoc name, String JavaDoc operationName, Object JavaDoc[] params, String JavaDoc[] signature) throws InstanceNotFoundException JavaDoc, MBeanException JavaDoc, ReflectionException JavaDoc {
114         return null;
115     }
116
117     public String JavaDoc getDefaultDomain() {
118         return null;
119     }
120
121     public String JavaDoc[] getDomains() {
122         return null;
123     }
124
125     public void addNotificationListener(ObjectName JavaDoc name, NotificationListener JavaDoc listener, NotificationFilter JavaDoc filter, Object JavaDoc handback) throws InstanceNotFoundException JavaDoc {
126     }
127
128     public void addNotificationListener(ObjectName JavaDoc name, ObjectName JavaDoc listener, NotificationFilter JavaDoc filter, Object JavaDoc handback) throws InstanceNotFoundException JavaDoc {
129     }
130
131     public void removeNotificationListener(ObjectName JavaDoc name, ObjectName JavaDoc listener) throws InstanceNotFoundException JavaDoc, ListenerNotFoundException JavaDoc {
132     }
133
134     public void removeNotificationListener(ObjectName JavaDoc name, ObjectName JavaDoc listener, NotificationFilter JavaDoc filter, Object JavaDoc handback) throws InstanceNotFoundException JavaDoc, ListenerNotFoundException JavaDoc {
135     }
136
137     public void removeNotificationListener(ObjectName JavaDoc name, NotificationListener JavaDoc listener) throws InstanceNotFoundException JavaDoc, ListenerNotFoundException JavaDoc {
138     }
139
140     public void removeNotificationListener(ObjectName JavaDoc name, NotificationListener JavaDoc listener, NotificationFilter JavaDoc filter, Object JavaDoc handback) throws InstanceNotFoundException JavaDoc, ListenerNotFoundException JavaDoc {
141     }
142
143     public MBeanInfo JavaDoc getMBeanInfo(ObjectName JavaDoc name) throws InstanceNotFoundException JavaDoc, IntrospectionException JavaDoc, ReflectionException JavaDoc {
144         return null;
145     }
146
147     public boolean isInstanceOf(ObjectName JavaDoc name, String JavaDoc className) throws InstanceNotFoundException JavaDoc {
148         return false;
149     }
150
151     public Object JavaDoc instantiate(String JavaDoc className) throws ReflectionException JavaDoc, MBeanException JavaDoc {
152         return null;
153     }
154
155     public Object JavaDoc instantiate(String JavaDoc className, ObjectName JavaDoc loaderName) throws ReflectionException JavaDoc, MBeanException JavaDoc, InstanceNotFoundException JavaDoc {
156         return null;
157     }
158
159     public Object JavaDoc instantiate(String JavaDoc className, Object JavaDoc[] params, String JavaDoc[] signature) throws ReflectionException JavaDoc, MBeanException JavaDoc {
160         return null;
161     }
162
163     public Object JavaDoc instantiate(String JavaDoc className, ObjectName JavaDoc loaderName, Object JavaDoc[] params, String JavaDoc[] signature) throws ReflectionException JavaDoc, MBeanException JavaDoc, InstanceNotFoundException JavaDoc {
164         return null;
165     }
166
167     public ObjectInputStream JavaDoc deserialize(ObjectName JavaDoc name, byte[] data) throws InstanceNotFoundException JavaDoc, OperationsException JavaDoc {
168         return null;
169     }
170
171     public ObjectInputStream JavaDoc deserialize(String JavaDoc className, byte[] data) throws OperationsException JavaDoc, ReflectionException JavaDoc {
172         return null;
173     }
174
175     public ObjectInputStream JavaDoc deserialize(String JavaDoc className, ObjectName JavaDoc loaderName, byte[] data) throws InstanceNotFoundException JavaDoc, OperationsException JavaDoc, ReflectionException JavaDoc {
176         return null;
177     }
178
179     public ClassLoader JavaDoc getClassLoaderFor(ObjectName JavaDoc mbeanName) throws InstanceNotFoundException JavaDoc {
180         return null;
181     }
182
183     public ClassLoader JavaDoc getClassLoader(ObjectName JavaDoc loaderName) throws InstanceNotFoundException JavaDoc {
184         return null;
185     }
186
187     public ClassLoaderRepository JavaDoc getClassLoaderRepository() {
188         return null;
189     }
190
191 }
192
Popular Tags