KickJava   Java API By Example, From Geeks To Geeks.

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


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

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

40
41 public interface JavaConfig
42     extends ConfigElement, PropertiesAccess, Container
43 {
44 /** The j2eeType as returned by {@link com.sun.appserv.management.base.AMX#getJ2EEType}. */
45     public static final String JavaDoc J2EE_TYPE = XTypes.JAVA_CONFIG;
46     
47     public String JavaDoc getBytecodePreprocessors();
48     public void setBytecodePreprocessors( String JavaDoc value );
49
50     public String JavaDoc getClasspathPrefix();
51     public void setClasspathPrefix( String JavaDoc value );
52
53     public String JavaDoc getClasspathSuffix();
54     public void setClasspathSuffix( String JavaDoc value );
55
56     public boolean getDebugEnabled();
57     public void setDebugEnabled( boolean value );
58
59     public String JavaDoc getDebugOptions();
60     public void setDebugOptions( String JavaDoc value );
61
62     public boolean getEnvClasspathIgnored();
63     public void setEnvClasspathIgnored( boolean value );
64
65     public String JavaDoc getJavaHome();
66     public void setJavaHome( String JavaDoc value );
67
68     public String JavaDoc getJavacOptions();
69     public void setJavacOptions( String JavaDoc value );
70
71
72     /**
73         @since AppServer 9.0
74      */

75     public String JavaDoc getSystemClasspath();
76     
77     /**
78         @since AppServer 9.0
79      */

80     public void setSystemClasspath( String JavaDoc classpath );
81     
82     public String JavaDoc[] getJVMOptions();
83     
84     /**
85         Overwrites existing jvm options with the new options.
86         If the intent is to append the new options the caller needs to first get
87         the existing jvm options using <a>#getJVMOptions</a>, append new
88         options and set the resulting whole using this method.
89         <p>
90         If a JVM option contains a space or tab, you must enclose
91         it in quotes eg </code>"C:Program Files\dir"</code>
92      */

93     public void setJVMOptions( String JavaDoc[] value );
94
95     public String JavaDoc getNativeLibraryPathPrefix();
96     public void setNativeLibraryPathPrefix( String JavaDoc value );
97
98     public String JavaDoc getNativeLibraryPathSuffix();
99     public void setNativeLibraryPathSuffix( String JavaDoc value );
100
101     public String JavaDoc getRMICOptions();
102     public void setRMICOptions( String JavaDoc value );
103
104     public String JavaDoc getServerClasspath();
105     public void setServerClasspath( String JavaDoc value );
106
107
108 // -------------------- Operations --------------------
109
/**
110         Get the ProfilerConfig MBean.
111      */

112     public ProfilerConfig getProfilerConfig();
113
114     /**
115         Creates a profiler element.
116         Although a name is specified, only one profiler may exist.
117
118         @param name identifier
119         @param optional Map of optional attributes. See {@link ProfilerConfigKeys}
120         @return A proxy to the ProfilerConfig MBean.
121      */

122     public ProfilerConfig createProfilerConfig( String JavaDoc name, Map JavaDoc<String JavaDoc,String JavaDoc> optional );
123
124     /**
125         Removes profiler element.
126      */

127     public void removeProfilerConfig();
128 }
129
Popular Tags