KickJava   Java API By Example, From Geeks To Geeks.

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


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/VirtualServerConfig.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 import com.sun.appserv.management.base.XTypes;
36 import com.sun.appserv.management.base.Container;
37
38
39 /**
40      Configuration for the <virtual-server> element.
41 */

42
43 public interface VirtualServerConfig
44     extends NamedConfigElement, PropertiesAccess, Container
45 {
46 /** The j2eeType as returned by {@link com.sun.appserv.management.base.AMX#getJ2EEType}. */
47     public static final String JavaDoc J2EE_TYPE = XTypes.VIRTUAL_SERVER_CONFIG;
48
49
50     public String JavaDoc getDefaultWebModule();
51     public void setDefaultWebModule( String JavaDoc value );
52
53     public String JavaDoc getHosts();
54     public void setHosts( String JavaDoc value );
55
56     public String JavaDoc getHTTPListeners();
57     public void setHTTPListeners( String JavaDoc value );
58
59     //** default: "${com.sun.aas.instanceRoot}/logs/server.log" */
60
public String JavaDoc getLogFile();
61     public void setLogFile( String JavaDoc value );
62
63     public String JavaDoc getState();
64     public void setState( String JavaDoc value );
65     
66     public String JavaDoc getDocRoot();
67     public void setDocRoot( String JavaDoc value );
68
69     /**
70         Removes http-access-log element.
71      */

72     void removeHTTPAccessLogConfig();
73
74     /**
75         Get the HTTPAccessLogConfig MBean.
76      */

77     public HTTPAccessLogConfig getHTTPAccessLogConfig();
78
79     /**
80         Creates new http-access-log element.
81      
82         @param ipOnly
83         @param logDirectory
84         @param reserved
85         @return A proxy to the HTTPAccessLogConfig MBean.
86      */

87     public HTTPAccessLogConfig createHTTPAccessLogConfig(
88         final boolean ipOnly,
89         final String JavaDoc logDirectory,
90         final Map JavaDoc<String JavaDoc,String JavaDoc> reserved );
91 }
92
Popular Tags