Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

Source code: com/flexstor/common/util/DiagnosticCategoryI.java


1   /*
2    * DiagnosticCategoryI.java
3    *
4    * Copyright $Date: 2003/08/11 02:22:31 $ FLEXSTOR.net Inc.
5    *
6    * This work is licensed for use and distribution under license terms found at
7    * http://www.flexstor.org/license.html
8    *
9    */
10  
11  package com.flexstor.common.util;
12  
13  /**
14   * Revision 1.15 2000-09-28 : 22:51:00 Visesh
15   * Changed access modifier of 'categories' to public final static
16   *
17   * This class ensures type safety for diagnostic categories. Only categories
18   * defines in this interface can be traced.
19   * Each category must be included in the categories array when added to the interface.
20   * Categories can be referenced through Diagnostic, e.g. Diagnostic.CAT_SEND.
21   *
22   * All categories should be commented.
23   */
24  public class DiagnosticCategoryI
25  {
26     /** Trace category for Send Dialog/Send Elements */
27     public final static DiagnosticCategory CAT_SEND           = new DiagnosticCategory("Send");
28  
29     /** Trace category for Archive Elements */
30     public final static DiagnosticCategory CAT_ARCHIVE        = new DiagnosticCategory("Archive");
31  
32     /** Trace category for ClassGenerator */
33     public static final DiagnosticCategory CAT_CLASSGEN       = new DiagnosticCategory("ClassGenerator");
34  
35     /** Trace category for FlexClassLoader and subclasses */
36     public static final DiagnosticCategory CAT_CLASSLDR       = new DiagnosticCategory("ClassLoader");
37  
38     /** Trace category for Reporting */
39     public static final DiagnosticCategory CAT_REPORT         = new DiagnosticCategory("Report");
40  
41     /** Trace category for Oracle Application Server */
42     public static final DiagnosticCategory CAT_OAS            = new DiagnosticCategory("OAS");
43  
44     /** Trace category for external process generation */
45     public static final DiagnosticCategory CAT_PROCESS        = new DiagnosticCategory("Process");
46  
47     /** Trace category for import */
48     public static final DiagnosticCategory CAT_IMPORT         = new DiagnosticCategory("Import");
49  
50  
51     /** Trace category for export */
52     public static final DiagnosticCategory CAT_EXPORT         = new DiagnosticCategory("Export");
53  
54     /** Trace category for thread manager */
55     public static final DiagnosticCategory CAT_THREAD_MGR     = new DiagnosticCategory("ThreadMgr");
56  
57     /** Trace category for Remote Asset Services */
58     public static final DiagnosticCategory CAT_SCRIPT_SVC     = new DiagnosticCategory("scriptSvc");
59  
60     /** Trace category for the Server Gateway.  This category has 6 levels:
61         1.  Misc. Messages
62         2.  Retrieval of Home Interface
63         3.  Method calls
64         4.  Dispose calls
65         5.  Stack traces
66         6.  Heartbeat messages.
67     */
68     public static final DiagnosticCategory CAT_GATEWAY        = new DiagnosticCategory("Gateway");
69  
70     /** Trace category for AppServer/Main */
71     public final static DiagnosticCategory APPSERVER_MAIN     = new DiagnosticCategory("AppMain");
72  
73     /** Trace category for AppServer/QManager */
74     public final static DiagnosticCategory APPSERVER_QMANAGER = new DiagnosticCategory("AppQManager");
75  
76     /** Trace category for AppServer/Services (not including archive/restore) */
77     public final static DiagnosticCategory APPSERVER_SERVICES = new DiagnosticCategory("AppServices");
78  
79     /** Trace category for AppServer/Archive (including restore) */
80     public final static DiagnosticCategory APPSERVER_ARCHIVE  = new DiagnosticCategory("AppArchive");
81  
82     /** Trace category for AppServer/ImportProcessor */
83     public final static DiagnosticCategory APPSERVER_IMPORT   = new DiagnosticCategory("AppImport");
84  
85     /** Trace category for Asset Registry */
86     public final static DiagnosticCategory ASSET_REG = new DiagnosticCategory("AssetRegistry");
87  
88     /** Trace category for Root, Result Set, Disguise, Bucket, and Element Registries */
89     public final static DiagnosticCategory REGISTRY = new DiagnosticCategory("Registry");
90  
91     /** Trace category for settings related*/
92     public final static DiagnosticCategory SETTINGS = new DiagnosticCategory("Settings");
93  
94     /** Trace category for settings related*/
95     public final static DiagnosticCategory ASSET_VERSIONS = new DiagnosticCategory("AssetVersions");
96  
97     /** Array containing all categories */
98     public final static DiagnosticCategory[] categories = {
99        CAT_IMPORT,
100       CAT_EXPORT,
101       CAT_SEND,
102       CAT_ARCHIVE,
103       CAT_CLASSGEN,
104       CAT_CLASSLDR,
105       CAT_REPORT,
106       CAT_OAS,
107       CAT_PROCESS,
108       CAT_GATEWAY,
109       CAT_THREAD_MGR,
110       APPSERVER_MAIN,
111       APPSERVER_QMANAGER,
112       APPSERVER_SERVICES,
113       APPSERVER_ARCHIVE,
114       APPSERVER_IMPORT,
115       ASSET_REG,
116       REGISTRY,
117       SETTINGS,
118       CAT_SCRIPT_SVC,
119       ASSET_VERSIONS,
120    };
121 
122    public DiagnosticCategoryI() {}
123 }