KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > sun > appserv > management > config > ConfigConfig


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  * $Header: /cvs/glassfish/admin-core/mbeanapi/src/java/com/sun/appserv/management/config/ConfigConfig.java,v 1.12 2006/03/09 20:30:23 llc Exp $
26  * $Revision: 1.12 $
27  * $Date: 2006/03/09 20:30:23 $
28  */

29
30
31 package com.sun.appserv.management.config;
32
33 import java.util.Map JavaDoc;
34
35 import com.sun.appserv.management.base.XTypes;
36 import com.sun.appserv.management.base.Container;
37
38 /**
39      Configuration for the <config> element.
40  */

41 public interface ConfigConfig
42     extends PropertiesAccess, SystemPropertiesAccess,
43     NamedConfigElement, Container
44 {
45     /**
46         Configuration of the config element itself.
47      */

48 /** The j2eeType as returned by {@link com.sun.appserv.management.base.AMX#getJ2EEType}. */
49     public static final String JavaDoc J2EE_TYPE = XTypes.CONFIG_CONFIG;
50     
51     
52     /**
53         Calls Container.getContaineeMap( XTypes.THREAD_POOL_CONFIG ).
54         @return Map of ThreadPoolConfig proxies, keyed by name.
55         @see com.sun.appserv.management.base.Container#getContaineeMap
56      */

57     public Map JavaDoc<String JavaDoc,ThreadPoolConfig> getThreadPoolConfigMap();
58     
59
60     /**
61         Return the IIOPServiceConfig.
62      */

63     public IIOPServiceConfig getIIOPServiceConfig();
64     
65     /**
66         Return the HTTPServiceConfig.
67      */

68     public HTTPServiceConfig getHTTPServiceConfig();
69     
70     /**
71         Return the SecurityServiceConfig.
72      */

73     public SecurityServiceConfig getSecurityServiceConfig();
74     
75     /**
76         Return the MonitoringServiceConfig.
77      */

78     public MonitoringServiceConfig getMonitoringServiceConfig();
79     
80     /**
81         Return the AdminServiceConfig.
82      */

83     public AdminServiceConfig getAdminServiceConfig();
84         
85     /**
86         Create a new &lt;thread-pool>
87         
88         @param name name of the &lt;thread-pool> (thread-pool-id)
89         @param optional Map of optional attributes and properties whose keys
90         are defined here. (eg:- MIN_THREAD_POOL_SIZE_KEY)
91         @return A proxy to the ThreadPoolConfig MBean.
92         @see ThreadPoolConfigKeys
93      */

94     public ThreadPoolConfig createThreadPoolConfig( String JavaDoc name, Map JavaDoc<String JavaDoc,String JavaDoc> optional );
95
96     /**
97         Removes a thread-pool element.
98
99         @param name name of the &lt;thread-pool> (thread-pool-id)
100      */

101     public void removeThreadPoolConfig( String JavaDoc name );
102     
103     
104     /**
105         Return the WebContainerConfig.
106      */

107     public WebContainerConfig getWebContainerConfig() ;
108     
109     /**
110         Return the EJBContainerConfig.
111      */

112     public EJBContainerConfig getEJBContainerConfig() ;
113     
114     /**
115         Return the MDBContainerConfig.
116      */

117     public MDBContainerConfig getMDBContainerConfig();
118     
119     /**
120         Return the JavaConfig.
121      */

122     public JavaConfig getJavaConfig();
123     
124     /**
125         Return the JMSServiceConfig.
126      */

127     public JMSServiceConfig getJMSServiceConfig();
128     
129     /**
130         Return the LogServiceConfig.
131      */

132     public LogServiceConfig getLogServiceConfig();
133     
134     /**
135         Return the TransactionServiceConfig.
136      */

137     public TransactionServiceConfig getTransactionServiceConfig();
138     
139     /**
140         Return the AvailabilityServiceConfig.
141      */

142     public AvailabilityServiceConfig getAvailabilityServiceConfig();
143
144     /**
145         Return the ConnectorServiceConfig.
146      */

147     public ConnectorServiceConfig getConnectorServiceConfig();
148     
149     /**
150         Create the ConnectorServiceConfig if it doesn't already exist.
151      */

152     public ConnectorServiceConfig createConnectorServiceConfig();
153     public void removeConnectorServiceConfig();
154
155
156     /**
157         Return the DiagnosticServiceConfig. May be null.
158         @since AppServer 9.0
159         */

160     public DiagnosticServiceConfig getDiagnosticServiceConfig();
161     
162     /**
163         Create the DiagnosticServiceConfig.
164         @since AppServer 9.0
165         */

166     public DiagnosticServiceConfig createDiagnosticServiceConfig();
167     
168     /**
169         Remove the DiagnosticServiceConfig.
170         @since AppServer 9.0
171         */

172     public void removeDiagnosticServiceConfig();
173     
174
175     /**
176     Return the Group Management Service configuration.
177     @since AppServer 9.0
178     */

179     public GroupManagementServiceConfig getGroupManagementServiceConfig();
180     
181     /**
182         When set to "true" then any changes to the system (e.g.
183         applications deployed, resources created) will be
184         automatically applied to the affected servers without a
185         restart being required. When set to "false" such changes will
186         only be picked up by the affected servers when each server
187         restarts.
188         @since AppServer 9.0
189      */

190     public boolean getDynamicReconfigurationEnabled();
191     
192     /**
193         @see #getDynamicReconfigurationEnabled
194         @since AppServer 9.0
195      */

196     public void setDynamicReconfigurationEnabled( boolean enabled );
197     
198     /**
199         @return ManagementRulesConfig (may be null );
200      */

201     public ManagementRulesConfig getManagementRulesConfig();
202 }
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
Popular Tags