Wed, 28 Mar 2012 02:50:50 -0700
7079902: Refine CORBA data models
Reviewed-by: coffeys
1 /*
2 * Copyright (c) 2003, 2012, Oracle and/or its affiliates. All rights reserved.
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * This code is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License version 2 only, as
7 * published by the Free Software Foundation. Oracle designates this
8 * particular file as subject to the "Classpath" exception as provided
9 * by Oracle in the LICENSE file that accompanied this code.
10 *
11 * This code is distributed in the hope that it will be useful, but WITHOUT
12 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14 * version 2 for more details (a copy is included in the LICENSE file that
15 * accompanied this code).
16 *
17 * You should have received a copy of the GNU General Public License version
18 * 2 along with this work; if not, write to the Free Software Foundation,
19 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
20 *
21 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
22 * or visit www.oracle.com if you need additional information or have any
23 * questions.
24 */
26 package com.sun.corba.se.spi.logging ;
28 /** Defines constants for all of the logging domains used in the ORB.
29 * Note that this is the suffix to the log domain. The full domain is given by
30 * <code>javax.enterprise.resource.corba.{ORBId}.{Log domain}</code>
31 * where {ORBId} is the ORB ID of the ORB instance doing the logging.
32 * <P>
33 * The ORB implementation packages are mapped into these domains as follows:
34 * <ul>
35 * <li>activation: orbd.*
36 * <li>corba: rpc.presentation (CORBA API, typecode/any), oa.invocation (DII)
37 * <li>core: service context code in rpc.protocol (will eventually move to its own package)
38 * <li>dynamicany: rpc.presentation
39 * <li>encoding: rpc.encoding
40 * <li>iiop: rmiiop.delegate (ShutdownUtilDelegate needs to move somewhere)
41 * <li>interceptors: rpc.protocol
42 * <li>io: rpc.encoding
43 * <li>ior: oa.ior
44 * <li>javax: rmiiiop.delegate
45 * <li>logging: logging does not have a domain
46 * <li>naming: naming
47 * <li>oa: oa
48 * <li>orb: orb.lifecycle
49 * <li>orbutil: util
50 * <li>protocol: rpc.protocol
51 * <li>resolver: orb.resolver
52 * <li>transport: rpc.transport
53 * <li>txpoa: this will be removed in the future.
54 * <li>util: util
55 * </ul>
56 */
57 public abstract class CORBALogDomains {
58 private CORBALogDomains() {}
60 // Top level log domain for CORBA
61 public static final String TOP_LEVEL_DOMAIN = "javax.enterprise.resource.corba";
63 public static final String RPC = "rpc" ;
65 /** Log domain for code directly implementing the CORBA API and
66 * the typecode/any machinery.
67 */
68 public static final String RPC_PRESENTATION = "rpc.presentation" ;
70 /** Log domain for any sort of wire encoding used in marshalling
71 */
72 public static final String RPC_ENCODING = "rpc.encoding" ;
74 /** Log domain for the code used to handle any kind of invocation
75 * protocol. This includes client and server delegates, client and
76 * server request dispatchers, service contexts, portable interceptors,
77 * and the GIOP protocol (but not CDR representation of data).
78 */
79 public static final String RPC_PROTOCOL = "rpc.protocol" ;
81 /** Log domain for low-level transport details, which are
82 * independent of encoding and presentation details. This
83 * includes selectors, acceptors, connections, connection management,
84 * and any other transport management functions.
85 */
86 public static final String RPC_TRANSPORT = "rpc.transport" ;
88 public static final String NAMING = "naming" ;
90 /** Log domain for naming context creation and destruction.
91 */
92 public static final String NAMING_LIFECYCLE = "naming.lifecycle" ;
94 /** Log domain for name service lookup.
95 */
96 public static final String NAMING_READ = "naming.read" ;
98 /** Log domain for name service bind, rebind, destroy, and other state
99 * change operations.
100 */
101 public static final String NAMING_UPDATE = "naming.update" ;
103 public static final String ORBD = "orbd" ;
105 /** Log domain for the ORBD locator function, which forwards
106 * client requests to their current server incarnation.
107 */
108 public static final String ORBD_LOCATOR = "orbd.locator" ;
110 /** Log domain for the ORBD activator function, which starts
111 * server instances on demand.
112 */
113 public static final String ORBD_ACTIVATOR = "orbd.activator" ;
115 /** Log domain for the Implementation Repository.
116 */
117 public static final String ORBD_REPOSITORY = "orbd.repository" ;
119 /** Log domain for the servertool utilitiy used to update the
120 * implementation repository.
121 */
122 public static final String ORBD_SERVERTOOL = "orbd.servertool" ;
124 public static final String ORB = "orb" ;
126 /** Log domain for ORB initialization, configuration, startup,
127 * and shutdown.
128 */
129 public static final String ORB_LIFECYCLE = "orb.lifecycle" ;
131 /** Log domain for ORB client side name resolution and supporting
132 * functions such as INS.
133 */
134 public static final String ORB_RESOLVER = "orb.resolver" ;
136 public static final String OA = "oa" ;
138 /** Log domain for creation, destruction, and state change of
139 * Object Adapters and related classes (e.g. POAManager).
140 */
141 public static final String OA_LIFECYCLE = "oa.lifecycle" ;
143 /** Log domain for all IOR related code.
144 */
145 public static final String OA_IOR = "oa.ior" ;
147 /** Log domain for object adapter request dispatch.
148 */
149 public static final String OA_INVOCATION = "oa.invocation" ;
151 public static final String RMIIIOP = "rmiiiop" ;
153 /** Log domain for the RMI-IIOP implementation in the Stub, Util, and
154 * PortableRemoteObject delegates.
155 */
156 public static final String RMIIIOP_DELEGATE = "rmiiiop.delegate" ;
158 /** Log domain for utility classes.
159 */
160 public static final String UTIL = "util" ;
161 }