KickJava   Java API By Example, From Geeks To Geeks.

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


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

29
30 package com.sun.appserv.management.config;
31
32 import java.util.Map JavaDoc;
33
34 /**
35     Supports creation and removal of server references.
36 */

37 public interface ServerRefConfigCR extends ConfigRemover
38 {
39     public final static String JavaDoc ENABLED_KEY = "Enabled";
40
41     public final static String JavaDoc LB_ENABLED_KEY = "LBEnabled";
42
43     public final static String JavaDoc DISABLE_TIMEOUT_IN_MINUTES_KEY = "DisableTimeoutInMinutes";
44
45     /**
46         Creates a new server-ref.
47
48         @param referencedServerName name of the server.
49         @param optional Map of optional attributes. Valid keys are defined here.
50         @return A proxy to the ServerRefConfig MBean.
51     */

52     public ServerRefConfig createServerRefConfig(String JavaDoc referencedServerName, Map JavaDoc<String JavaDoc,String JavaDoc> optional);
53
54     /**
55         Creates a new server-ref.
56
57         @param referencedServerName name of the server.
58         @param disableTimeoutInMinutes
59         @param lbEnabled
60         @param enabled
61         @return A proxy to the ServerRefConfig MBean.
62     */

63     public ServerRefConfig createServerRefConfig(String JavaDoc referencedServerName,
64                 String JavaDoc disableTimeoutInMinutes, boolean lbEnabled, boolean enabled);
65     
66     
67     public void removeServerRefConfig( String JavaDoc name );
68 }
69
Popular Tags