KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > sun > enterprise > diagnostics > 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 package com.sun.enterprise.diagnostics;
24 import com.sun.enterprise.util.SystemPropertyConstants;
25 import java.io.File JavaDoc;
26
27 /**
28  * Diagnostic Service related constants.
29  * @author Manisha Umbarje
30  */

31 public interface Constants {
32
33     // Log related constants
34
public static final String JavaDoc DATE_PATTERN = "yyyy-MM-dd";
35     public static final String JavaDoc DATE_TIME_PATTERN =
36             "yyyy-MM-dd'T'HH-mm-ss";
37     public static final char FIELD_SEPARATOR = '|';
38     public static final String JavaDoc ENTRY_END_INDICATOR = "|#]";
39     public static final String JavaDoc ENTRY_BEGIN_INDICATOR = "[#|";
40     public static final int ENTRY_DATE_BEGIN_INDEX = 3;
41     public static final int ENTRY_DATE_LENGTH = 10;
42     public static final char FILENAME_DATE_SEPARATOR = '_';
43
44     //Config related constants
45
public static final String JavaDoc CONFIG_DIR = File.separator +
46             "config";
47     public static final String JavaDoc DOMAIN_XML = CONFIG_DIR +
48             File.separator + "domain.xml";;
49     public static final String JavaDoc DOMAIN_XML_DTD = File.separator +
50             "lib" + File.separator + "dtds" +
51             File.separator + "sun-domain_1_2.dtd";
52     public static final String JavaDoc SUN_ACC = CONFIG_DIR +
53             File.separator + "sun-acc.xml";
54     public static final String JavaDoc LOGIN_CONF = CONFIG_DIR +
55             File.separator + "login.conf";
56     public static final String JavaDoc SERVER_POLICY = CONFIG_DIR +
57             File.separator + "server.policy";
58     
59     // App Info collector related constants
60
public static final String JavaDoc GENERATED = "generated";
61     public static final String JavaDoc GENERATED_DIR = File.separator + GENERATED;
62     public static final String JavaDoc APPLICATIONS = "applications";
63     public static final String JavaDoc APPLICATIONS_DIR =
64             File.separator + APPLICATIONS;
65
66     public static final String JavaDoc REPORT_SUMMARY = File.separator +
67             "ReportSummary.html";
68     
69     public static final String JavaDoc SERVER =
70             SystemPropertyConstants.DEFAULT_SERVER_INSTANCE_NAME;
71     public static final String JavaDoc INSTALLATION_LOG_PREFIX = "Install_Application_Server";
72     public static final String JavaDoc SJSAS_INSTALLATION_LOG_PREFIX = "Sun_Java_System_Application_Server";
73     
74 }
75
Popular Tags