KickJava   Java API By Example, From Geeks To Geeks.

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


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/ClusterConfig.java,v 1.6 2006/03/09 20:30:22 llc Exp $
26  * $Revision: 1.6 $
27  * $Date: 2006/03/09 20:30:22 $
28  */

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

44 public interface ClusterConfig
45     extends PropertiesAccess, SystemPropertiesAccess,
46     NamedConfigElement, Container,
47         ResourceRefConfigCR, ServerRefConfigCR, DeployedItemRefConfigCR
48 {
49 /** The j2eeType as returned by {@link com.sun.appserv.management.base.AMX#getJ2EEType}. */
50     public static final String JavaDoc J2EE_TYPE = XTypes.CLUSTER_CONFIG;
51     
52     /**
53         Get the name of the config element referenced by this cluster.
54      */

55     public String JavaDoc getReferencedConfigName();
56
57     /**
58         Calls Container.getContaineeMap( XTypes.SERVER_REF_CONFIG ).
59         @return Map of ServerRefConfig MBean proxies, keyed by name.
60         @see com.sun.appserv.management.base.Container#getContaineeMap
61      */

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

69     public Map JavaDoc<String JavaDoc,ResourceRefConfig> getResourceRefConfigMap();
70     
71     /**
72         Calls Container.getContaineeMap( XTypes.DEPLOYED_ITEM_REF_CONFIG ).
73         @return Map of DeployedItemRefConfig MBean proxies, keyed by name.
74         @see com.sun.appserv.management.base.Container#getContaineeMap
75      */

76     public Map JavaDoc<String JavaDoc,DeployedItemRefConfig> getDeployedItemRefConfigMap();
77
78     /**
79         @return Map of ClusteredServerConfig, keyed by name.
80      */

81     public Map JavaDoc<String JavaDoc,ClusteredServerConfig> getClusteredServerConfigMap();
82
83
84     /**
85         @since AppServer 9.0
86      */

87     public ClusteredServerConfig createClusteredServerConfig(
88                                         String JavaDoc name, String JavaDoc nodeAgentName,
89                                          Map JavaDoc<String JavaDoc,String JavaDoc> optional);
90     /**
91         @since AppServer 9.0
92      */

93      public void removeClusteredServerConfig( String JavaDoc name );
94     
95     /**
96      * Return the port used by GMS for group events.
97      * @since AppServer 9.0
98     */

99     public String JavaDoc getHeartbeatPort();
100     /**
101      * @since AppServer 9.0
102     */

103     public void setHeartbeatPort(final String JavaDoc port);
104
105     /**
106      * @since AppServer 9.0
107     */

108     public boolean getHeartbeatEnabled();
109     /**
110      * @since AppServer 9.0
111     */

112     public void setHeartbeatEnabled(final boolean enabled);
113
114     /**
115      * @since AppServer 9.0
116     */

117     public String JavaDoc getHeartbeatAddress();
118     /**
119      * @since AppServer 9.0
120     */

121     public void setHeartbeatAddress(final String JavaDoc address);
122 }
123
Popular Tags