KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > sun > appserv > management > ext > logging > LogRecordFields


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.appserv.management.ext.logging;
24
25
26 /**
27     Indices into log record fields as returned by
28     {@link LogQuery#queryServerLog}. Also
29     @since AppServer 9.0
30  */

31 public final class LogRecordFields
32 {
33     private LogRecordFields() {}
34     
35     /** Value is of class java.lang.Integer */
36     public final static int RECORD_NUMBER_INDEX = 0;
37     
38     /** Value is of class java.util.Date */
39     public final static int DATE_INDEX = 1;
40     
41     /** Value is of class java.lang.String */
42     public final static int LEVEL_INDEX = 2;
43     
44     /** Value is of class java.lang.String */
45     public final static int PRODUCT_NAME_INDEX = 3;
46     
47     /** Value is of class java.lang.Integer */
48     public final static int MESSAGE_INDEX = 4;
49     
50     /** Value is of class java.lang.String */
51     public final static int MESSAGE_ID_INDEX = 5;
52     
53     /** Value is of class java.lang.String */
54     public final static int MODULE_INDEX = 6;
55     
56     /** Value is of class java.lang.String */
57     public final static int NAME_VALUE_PAIRS_INDEX = 7;
58     
59     /** Number of fields provided by {@link LogQuery#queryServerLog} */
60     public final static int NUM_FIELDS = NAME_VALUE_PAIRS_INDEX + 1;
61     
62     public final static String JavaDoc THREAD_ID_KEY = "_ThreadID";
63     public final static String JavaDoc OBJECTNAME_KEY = "_ObjectName";
64 }
65
66
Popular Tags