KickJava   Java API By Example, From Geeks To Geeks.

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


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/ServerConfig.java,v 1.5 2005/12/25 03:50:03 tcfujii Exp $
26  * $Revision: 1.5 $
27  * $Date: 2005/12/25 03:50:03 $
28  */

29
30
31 package com.sun.appserv.management.config;
32
33
34
35 import java.util.Map JavaDoc;
36
37 import com.sun.appserv.management.config.TemplateResolver;
38 import com.sun.appserv.management.base.Container;
39
40 /**
41     Base interface for server configuration for the <server> element.
42     Does not provide ability to access resource or application-ref; see
43     {@link StandaloneServerConfig} and {@link ClusteredServerConfig}.
44  */

45 public interface ServerConfig
46     extends PropertiesAccess, SystemPropertiesAccess,
47     NamedConfigElement, TemplateResolver, Container
48 {
49     /**
50         Get the name of the config element referenced by this server.
51      */

52     public String JavaDoc getReferencedConfigName( );
53     
54     /**
55         Get the name of the node-agent element referenced by this server.
56      */

57     public String JavaDoc getReferencedNodeAgentName( );
58     
59     /**
60         Calls Container.getContaineeMap( XTypes.DEPLOYED_ITEM_REF_CONFIG ).
61         @return Map of all DeployedItemRefConfig MBean proxies, keyed by name.
62         @see com.sun.appserv.management.base.Container#getContaineeMap
63      */

64     public Map JavaDoc<String JavaDoc,DeployedItemRefConfig> getDeployedItemRefConfigMap();
65     
66     /**
67         Calls Container.getContaineeMap( XTypes.RESOURCE_REF_CONFIG ).
68         @return Map of all ResourceRefConfig MBean proxies, keyed by name.
69         @see com.sun.appserv.management.base.Container#getContaineeMap
70      */

71     public Map JavaDoc<String JavaDoc,ResourceRefConfig> getResourceRefConfigMap();
72
73    
74     /**
75         <b>EE only</b>
76         Return the load balancer weight for this server.
77         This is used by both IIOP and HTTP load balancer. Default value is 1.
78         @since AppServer 9.0
79       */

80     public String JavaDoc getLBWeight();
81         
82     /**
83         <b>EE only</b>
84         Set the load balancer weight for this server to the specified value.
85         @since AppServer 9.0
86     */

87     public void setLBWeight(final String JavaDoc weight);
88 }
89
Popular Tags