KickJava   Java API By Example, From Geeks To Geeks.

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


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 package com.sun.appserv.management.config;
24
25 import java.util.Map JavaDoc;
26 import com.sun.appserv.management.base.Container;
27 import com.sun.appserv.management.base.AMX;
28 import com.sun.appserv.management.base.XTypes;
29
30 /**
31  * Configuration for the <group-management-service> for a <config> in
32  * a domain. This element controls the behavior of the group management service
33  * used for cluster monitoring and failure detection.
34  * @since Appserver 9.0
35 */

36
37 public interface GroupManagementServiceConfig
38     extends AMX, ConfigElement, PropertiesAccess
39 {
40     /** The j2eeType as returned by {@link com.sun.appserv.management.base.AMX#getJ2EEType}. */
41     public static final String JavaDoc J2EE_TYPE = XTypes.GROUP_MANAGEMENT_SERVICE_CONFIG;
42
43     /** Return the FD protocol tries.
44      * This is the maximum number of attempts to try before GMS confirms that a
45      * failure is suspected in the group.
46      * @return positive integer specifying the number of such attempts
47      */

48     public String JavaDoc getFDProtocolMaxTries();
49     /** Set the FD protocol tries to the specified positive integer value.
50       * Must be a positive integer.
51       * @param tries a positive integer specifying the number of attempts
52     */

53     public void setFDProtocolMaxTries(final String JavaDoc tries);
54
55
56     public String JavaDoc getFDProtocolTimeoutMillis();
57     public void setFDProtocolTimeoutMillis(final String JavaDoc duration);
58
59     public String JavaDoc getMergeProtocolMaxIntervalMillis();
60     public void setMergeProtocolMaxIntervalMillis(final String JavaDoc duration);
61
62     public String JavaDoc getMergeProtocolMinIntervalMillis();
63     public void setMergeProtocolMinIntervalMillis(final String JavaDoc duration);
64
65     public String JavaDoc getPingProtocolTimeoutMillis();
66     public void setPingProtocolTimeoutMillis(final String JavaDoc duration);
67
68     public String JavaDoc getVSProtocolTimeoutMillis();
69     public void setVSProtocolTimeoutMillis(final String JavaDoc duration);
70 }
71
Popular Tags