KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > sun > appserv > management > base > XTypesMapper


1 /*
2  * The contents of this file are subject to the terms
3  * of the Common Development and Distribution License
4  * (the License). You may not use this file except in
5  * compliance with the License.
6  *
7  * You can obtain a copy of the license at
8  * https://glassfish.dev.java.net/public/CDDLv1.0.html or
9  * glassfish/bootstrap/legal/CDDLv1.0.txt.
10  * See the License for the specific language governing
11  * permissions and limitations under the License.
12  *
13  * When distributing Covered Code, include this CDDL
14  * Header Notice in each file and include the License file
15  * at glassfish/bootstrap/legal/CDDLv1.0.txt.
16  * If applicable, add the following below the CDDL Header,
17  * with the fields enclosed by brackets [] replaced by
18  * you own identifying information:
19  * "Portions Copyrighted [year] [name of copyright owner]"
20  *
21  * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
22  */

23  
24 /*
25  */

26  
27 package com.sun.appserv.management.base;
28
29
30 import com.sun.appserv.management.DomainRoot;
31 import com.sun.appserv.management.config.*;
32 import com.sun.appserv.management.monitor.*;
33
34 import com.sun.appserv.management.ext.wsmgmt.WebServiceMgr;
35 import com.sun.appserv.management.ext.logging.Logging;
36 import com.sun.appserv.management.ext.lb.LoadBalancer;
37 import com.sun.appserv.management.monitor.LoadBalancerContextRootMonitor;
38 import com.sun.appserv.management.monitor.LoadBalancerClusterMonitor;
39 import com.sun.appserv.management.monitor.LoadBalancerServerMonitor;
40 import com.sun.appserv.management.monitor.LoadBalancerMonitor;
41 import com.sun.appserv.management.deploy.DeploymentMgr;
42
43 /**
44     Map all types from XTypes to their respective MBean interfaces.
45  */

46 public final class XTypesMapper extends TypesMapper
47 {
48     private static XTypesMapper INSTANCE = null;
49     
50     /**
51         Get the (singleton) instance.
52      */

53         public static synchronized XTypesMapper
54     getInstance()
55     {
56         if ( INSTANCE == null )
57         {
58             INSTANCE = new XTypesMapper();
59         }
60         
61         return( INSTANCE );
62     }
63
64         private
65     XTypesMapper()
66     {
67         super( MBEAN_INTERFACES );
68     }
69     
70     /**
71         The classes for which we need mapping (all MBeans must be included)
72      */

73     private static final Class JavaDoc[] MBEAN_INTERFACES =
74         {
75         DomainRoot.class,
76         SystemInfo.class,
77         NotificationEmitterService.class,
78         Logging.class,
79         NotificationService.class,
80         NotificationServiceMgr.class,
81         DomainConfig.class,
82         CustomMBeanConfig.class,
83         UploadDownloadMgr.class,
84         QueryMgr.class,
85         BulkAccess.class,
86         Sample.class,
87         ConfigConfig.class,
88         ClusterConfig.class,
89
90         StandaloneServerConfig.class,
91
92         ClusteredServerConfig.class,
93         NodeAgentConfig.class,
94
95         ConfigDottedNames.class,
96
97         DeploymentMgr.class,
98
99         ORBConfig.class,
100         ModuleMonitoringLevelsConfig.class,
101         ModuleLogLevelsConfig.class,
102         JavaConfig.class,
103         ProfilerConfig.class,
104         AppClientModuleConfig.class,
105
106         AdminServiceConfig.class,
107         IIOPServiceConfig.class,
108         IIOPListenerConfig.class,
109         SSLConfig.class,
110         HTTPServiceConfig.class,
111         HTTPListenerConfig.class,
112         VirtualServerConfig.class,
113         SecurityServiceConfig.class,
114         JACCProviderConfig.class,
115         AuthRealmConfig.class,
116         AuditModuleConfig.class,
117         MonitoringServiceConfig.class,
118         JMSServiceConfig.class,
119         JMSHostConfig.class,
120         JMSAvailabilityConfig.class,
121         ThreadPoolConfig.class,
122         AvailabilityServiceConfig.class,
123         TransactionServiceConfig.class,
124         LogServiceConfig.class,
125         GroupManagementServiceConfig.class,
126         DiagnosticServiceConfig.class,
127
128         DASConfig.class,
129
130         MailResourceConfig.class,
131         JNDIResourceConfig.class,
132
133         JDBCResourceConfig.class,
134
135         JDBCConnectionPoolConfig.class,
136
137         PersistenceManagerFactoryResourceConfig.class,
138
139         AdminObjectResourceConfig.class,
140
141         ResourceAdapterConfig.class,
142
143         CustomResourceConfig.class,
144
145         ConnectorConnectionPoolConfig.class,
146
147         ConnectorResourceConfig.class,
148
149         DeployedItemRefConfig.class,
150
151         ResourceRefConfig.class,
152
153         ServerRefConfig.class,
154                         
155                 LoadBalancer.class,
156                 LoadBalancerConfig.class,
157         HealthCheckerConfig.class,
158                 ClusterRefConfig.class,
159         LBConfig.class,
160         
161                 MDBContainerConfig.class,
162
163         WebContainerConfig.class,
164
165         SessionConfig.class,
166         SessionManagerConfig.class,
167         SessionPropertiesConfig.class,
168         ManagerPropertiesConfig.class,
169         StorePropertiesConfig.class,
170
171         WebModuleConfig.class,
172
173         ConnectorModuleConfig.class,
174
175         EJBContainerConfig.class,
176         EJBTimerServiceConfig.class,
177         EJBModuleConfig.class,
178
179         RARModuleConfig.class,
180
181         J2EEApplicationConfig.class,
182
183         LifecycleModuleConfig.class,
184                 
185         EJBContainerAvailabilityConfig.class,
186         WebContainerAvailabilityConfig.class,
187
188         AccessLogConfig.class,
189         RequestProcessingConfig.class,
190         HTTPProtocolConfig.class,
191         HTTPFileCacheConfig.class,
192         KeepAliveConfig.class,
193         ConnectionPoolConfig.class,
194
195         JMXConnectorConfig.class,
196
197         HTTPAccessLogConfig.class,
198
199         ConnectorServiceConfig.class,
200
201         RequestPolicyConfig.class,
202         ResponsePolicyConfig.class,
203         ProviderConfig.class,
204         MessageSecurityConfig.class,
205
206         /* monitoring mbean interfaces */
207         MonitoringDottedNames.class,
208         MonitoringRoot.class,
209         JMXMonitorMgr.class,
210         AMXStringMonitor.class,
211         AMXCounterMonitor.class,
212         AMXGaugeMonitor.class,
213         
214         ServerRootMonitor.class,
215         
216         LoadBalancerMonitor.class,
217         LoadBalancerServerMonitor.class,
218         LoadBalancerClusterMonitor.class,
219         LoadBalancerApplicationMonitor.class,
220         LoadBalancerContextRootMonitor.class,
221         
222         CallFlowMonitor.class,
223                         
224         JVMMonitor.class,
225         TransactionServiceMonitor.class,
226         ApplicationMonitor.class,
227         BeanCacheMonitor.class,
228         BeanMethodMonitor.class,
229         BeanPoolMonitor.class,
230         ConnectionManagerMonitor.class,
231         
232         WebModuleVirtualServerMonitor.class,
233         //WebModuleMonitor.class,
234
ServletMonitor.class,
235         ConnectorConnectionPoolMonitor.class,
236         EJBModuleMonitor.class,
237         StatelessSessionBeanMonitor.class,
238         StatefulSessionBeanMonitor.class,
239         EntityBeanMonitor.class,
240         MessageDrivenBeanMonitor.class,
241         HTTPListenerMonitor.class,
242         ThreadPoolMonitor.class,
243         HTTPServiceMonitor.class,
244         FileCacheMonitor.class,
245         JDBCConnectionPoolMonitor.class,
246         HTTPServiceVirtualServerMonitor.class,
247         KeepAliveMonitor.class,
248         ConnectionQueueMonitor.class,
249
250         WebServiceMgr.class,
251         WebServiceEndpointMonitor.class,
252         
253         ManagementRuleConfig.class,
254         ManagementRulesConfig.class,
255         WebServiceEndpointConfig.class,
256         TransformationRuleConfig.class,
257         SecurityMapConfig.class,
258         EventConfig.class,
259         ActionConfig.class,
260         BackendPrincipalConfig.class,
261         RegistryLocationConfig.class,
262     };
263     
264 }
265
Popular Tags