KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > quadcap > sql > file > Trace


1 /* Copyright 2003 Quadcap Software. All rights reserved.
2  *
3  * This software is distributed under the Quadcap Free Software License.
4  * This software may be used or modified for any purpose, personal or
5  * commercial. Open Source redistributions are permitted. Commercial
6  * redistribution of larger works derived from, or works which bundle
7  * this software requires a "Commercial Redistribution License"; see
8  * http://www.quadcap.com/purchase.
9  *
10  * Redistributions qualify as "Open Source" under one of the following terms:
11  *
12  * Redistributions are made at no charge beyond the reasonable cost of
13  * materials and delivery.
14  *
15  * Redistributions are accompanied by a copy of the Source Code or by an
16  * irrevocable offer to provide a copy of the Source Code for up to three
17  * years at the cost of materials and delivery. Such redistributions
18  * must allow further use, modification, and redistribution of the Source
19  * Code under substantially the same terms as this license.
20  *
21  * Redistributions of source code must retain the copyright notices as they
22  * appear in each source code file, these license terms, and the
23  * disclaimer/limitation of liability set forth as paragraph 6 below.
24  *
25  * Redistributions in binary form must reproduce this Copyright Notice,
26  * these license terms, and the disclaimer/limitation of liability set
27  * forth as paragraph 6 below, in the documentation and/or other materials
28  * provided with the distribution.
29  *
30  * The Software is provided on an "AS IS" basis. No warranty is
31  * provided that the Software is free of defects, or fit for a
32  * particular purpose.
33  *
34  * Limitation of Liability. Quadcap Software shall not be liable
35  * for any damages suffered by the Licensee or any third party resulting
36  * from use of the Software.
37  */

38
39 package com.quadcap.sql.file;
40
41 import com.quadcap.util.ConfigNumber;
42
43 public class Trace {
44
45     /*{com.quadcap.qed.Trace-vars.xml-1060}
46      * <config-var>
47      * <config-name>qed.trace.file</config-name>
48      * <config-dflt>0</config-dflt>
49      * <config-desc>
50      * <pre>
51      * bit 0: Block
52      * bit 1: Block verbose
53      * bit 2: BlockAccess
54      * bit 3: BlockAccess verbose
55      * bit 4: BlockFile
56      * bit 5: BlockFile verbose
57      * bit 9: Log: blobs
58      * bit 11: SubPageManager
59      * bit 12: Datafile
60      * bit 13: CircularBuffer
61      * bit 14: CircularBuffer streams
62      * bit 15: LogSync handle POST
63      * bit 16: Log1.reallyAddEntry()
64      * bit 17: LogSync handle PRE
65      * bit 18: Log restart
66      * bit 19: Log1 save/restore blocks
67      * bit 20: BlockStore.write
68      * bit 21: Log1.reallyCheckpoint
69      * bit 22: Logger1 checkpoint
70      * bit 23: Logger1 checkpoint verbose
71      * bit 24: sync()
72      * bit 25: checkpoint
73      * </pre>
74      * </config-desc>
75      * </config-var>
76      */

77     
78     protected static final
79     ConfigNumber trace = ConfigNumber.find("qed.trace.file", "0");
80
81     static boolean bit(int x) { return trace.bit(x); }
82     static int intValue() { return trace.intValue(); }
83 }
84
Popular Tags