KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > sun > enterprise > server > Constants


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  * @(#) Constants.java
26  *
27  * Copyright 2000-2001 by iPlanet/Sun Microsystems, Inc.,
28  * 901 San Antonio Road, Palo Alto, California, 94303, U.S.A.
29  * All rights reserved.
30  *
31  * This software is the confidential and proprietary information
32  * of iPlanet/Sun Microsystems, Inc. ("Confidential Information").
33  * You shall not disclose such Confidential Information and shall
34  * use it only in accordance with the terms of the license
35  * agreement you entered into with iPlanet/Sun Microsystems.
36  */

37 package com.sun.enterprise.server;
38
39 import com.sun.enterprise.util.SystemPropertyConstants;
40 import com.sun.enterprise.admin.util.IAdminConstants;
41
42 /**
43  * Static constants for this package.
44  */

45 public final class Constants implements IAdminConstants
46 {
47     private static final String JavaDoc prefix = "com.sun.aas.";
48     
49     public static final String JavaDoc Package = "com.sun.enterprise.server";
50     
51     /** Variable that contains the path to the iAS config installation. */
52     public static final String JavaDoc IAS_ROOT = SystemPropertyConstants.INSTANCE_ROOT_PROPERTY;
53
54     /** Name of the configuration dir name; server.xml resides here */
55     public static final String JavaDoc CONFIG_DIR_NAME = "config";
56
57     /** Variable that contains the path to the entire iAS installation. */
58     public static final String JavaDoc INSTALL_ROOT = SystemPropertyConstants.INSTALL_ROOT_PROPERTY;
59
60     /** Variable that contains the path to the Config Root. */
61     public static final String JavaDoc INSTALL_CFG_ROOT = SystemPropertyConstants.CONFIG_ROOT_PROPERTY;
62     
63     public static final String JavaDoc INSTALL_IMQ_BIN = SystemPropertyConstants.IMQ_BIN_PROPERTY;
64     public static final String JavaDoc INSTALL_IMQ_LIB = SystemPropertyConstants.IMQ_LIB_PROPERTY;
65
66     // ---- DIFFERENT DEPLOYMENT CONSTANTS --------------------------------
67

68     /**
69      * Variable that contains the path to the user-specified java compiler
70      * that ejbc will try to use. The variable is case-insensitive
71      */

72     public static final String JavaDoc USER_SPECIFIED_COMPILER =
73                                     prefix + "deployment.java.compiler";
74
75     /**
76      * Variable that enable compilation through file for javac and fastjavac.
77      */

78     public static final String JavaDoc ENABLE_JAVAC_FILE =
79                                 prefix + "deployment.javac.file.enable";
80     
81     /**
82      * Variable that contains the options for the user-specified java compiler
83      * that ejbc will try to use. The variable is case-insensitive
84      */

85     public static final String JavaDoc USER_SPECIFIED_COMPILER_OPTIONS =
86                                     USER_SPECIFIED_COMPILER + ".options";
87      
88     /**
89      * This is a backdoor designed for QA and support staff.
90      * If the magical environmental variable, "KeepFailedStubs",
91      * is set to "true", then it results in the generated stubs files being
92      * retained and placed into the expected directory with "_failed" appended
93      * to the name. The directory will be deleted and replaced the next time
94      * there is a failed deployment. It will never be automatically cleaned up.
95      * Note: KeepFailedStubs and true are both case insensitive.
96      */

97     public final static String JavaDoc KEEP_FAILED_STUBS =
98                                     prefix + "deployment.KeepFailedStubs";
99
100     /**
101      * This is a backdoor to turn off annotation processing for deployment.
102      */

103     public static final String JavaDoc PROCESS_ANNOTATION = prefix + "deployment.ProcessAnnotation";
104
105     /** Variable that contains the xsl directory for verifier tool */
106     public static final String JavaDoc VERIFIER_XSL = "com.sun.aas.verifier.xsl";
107
108     /** entry in the MANIFEST file of archive giving the resourceType*/
109     public static final String JavaDoc APPLICATION_TYPE = "Application-Type";
110
111     // --- SYSTEM APP DEPLOYMENT RELATED CONSTANTS --- //
112
public static final String JavaDoc LIB = "lib";
113     public static final String JavaDoc LIB_INSTALL = "install";
114     public static final String JavaDoc LIB_INSTALL_APPLICATIONS = "applications";
115     // target types
116
public static final String JavaDoc TARGET_TYPE_ADMIN = "admin";
117     public static final String JavaDoc TARGET_TYPE_INSTANCE = "instance";
118     
119     
120     public static final String JavaDoc ALLOW_SYSAPP_DEPLOYMENT = prefix+ "deployment.AllowSysAppDeployment";
121
122
123     // ---- TIMEOUTS FOR DIFFERENT COMPILERS USED BY EJBC ------------------
124

125     /** option to specify fast javac time out */
126     public static final String JavaDoc FASTJAVAC_TIMEOUT_MS =
127                                 prefix + "deployment.Fastjavac.TimeoutMS";
128
129     /** option to specify javac time out */
130     public static final String JavaDoc JAVAC_TIMEOUT_MS =
131                                     prefix + "deployment.Javac.TimeoutMS";
132
133     /** option to specify rmic time out */
134     public static final String JavaDoc RMIC_TIMEOUT_MS =
135                                     prefix + "deployment.Rmic.TimeoutMS";
136
137     /** option to specify user specified compiler time out */
138     public static final String JavaDoc USER_SPECIFIED_COMPILER_TIMEOUT_MS =
139                                     USER_SPECIFIED_COMPILER + ".TimeoutMS";
140
141     /** default fast javac time out */
142     public static final int DEFAULT_FASTJAVAC_TIMEOUT_MS = 4000;
143
144     /** default javac time out */
145     public static final int DEFAULT_JAVAC_TIMEOUT_MS = 30000;
146
147     /** default rmic time out */
148     public static final int DEFAULT_RMIC_TIMEOUT_MS = 40000;
149
150     /** default user specified time out */
151     public static final int DEFAULT_USER_SPECIFIED_COMPILER_TIMEOUT_MS =
152                                                     DEFAULT_JAVAC_TIMEOUT_MS;
153
154     /**
155      * The separator character between an application name and the web
156      * module name within the application.
157      */

158     public static final String JavaDoc NAME_SEPARATOR = ":";
159
160     /** cmp-only deployment arguments and the 3 possible "tri-state" values.
161      * bnevins
162      */

163     public static final String JavaDoc CMP_UNIQUE_TABLE_NAMES = "CmpInfo.uniqueTableNames";
164     public static final String JavaDoc CMP_DB_VENDOR_NAME = "CmpInfo.dbVendorName";
165     public static final String JavaDoc CMP_DROP_TABLES = "CmpInfo.DROP_TABLES";
166     public static final String JavaDoc CMP_CREATE_TABLES = "CmpInfo.CREATE_TABLES";
167     public static final String JavaDoc CMP_DROP_AND_CREATE_TABLES = "CmpInfo.DROP_AND_CREATE_TABLES";
168     public static final String JavaDoc TRUE = "true";
169     public static final String JavaDoc FALSE = "false";
170     public static final String JavaDoc UNDEFINED = "undefined";
171
172         // constants for loading/unloading application
173
public static final String JavaDoc LOAD_UNLOAD_ACTION = "loadUnloadAction";
174
175         // possible values for load/unload action
176
// load all parts of regular application
177
public static final int LOAD_UNSET = 0;
178         public static final int LOAD_ALL = 1;
179         // load rars of the embedded rar application
180
public static final int LOAD_RAR = 2;
181         // load rest of the embedded rar application
182
public static final int LOAD_REST = 3;
183         // unload all parts of regular application
184
public static final int UNLOAD_ALL = 4;
185         // unload rars of the embedded rar application
186
public static final int UNLOAD_RAR = 5;
187         // unload rest of the embedded rar application
188
public static final int UNLOAD_REST = 6;
189 }
190
Popular Tags