1 /*
   2  * Copyright (c) 2002, 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  */
  25 
  26 package com.sun.corba.se.impl.orbutil;
  27 /**
  28  * All the Keywords that will be used in Logging Messages for CORBA need to
  29  * be defined here. The LogKeywords will be useful for searching log messages
  30  * based on the standard keywords, it is also useful to work with LogAnalyzing
  31  * tools.
  32  * We will try to standardize these keywords in JSR 117 Logging
  33  */
  34 public class LogKeywords {
  35 
  36     /**
  37      ** Keywords for Lifecycle Loggers.
  38      ** _REVISIT_ After it is clearly defined in JSR 117
  39      **/
  40     public final static String LIFECYCLE_CREATE     = "<<LIFECYCLE CREATE>>";
  41     public final static String LIFECYCLE_INITIALIZE = "<<LIFECYCLE INITIALIZE>>";
  42     public final static String LIFECYCLE_SHUTDOWN   = "<<LIFECYCLE SHUTDOWN>>";
  43     public final static String LIFECYCLE_DESTROY    = "<<LIFECYCLE DESTROY>>";
  44 
  45 
  46     public final static String LIFECYCLE_CREATE_SUCCESS =
  47         LIFECYCLE_CREATE + "<<SUCCESS>>";
  48     public final static String LIFECYCLE_CREATE_FAILURE =
  49         LIFECYCLE_CREATE + "<<FAILURE>>";
  50     public final static String LIFECYCLE_INITIALIZE_SUCCESS =
  51         LIFECYCLE_INITIALIZE + "<<SUCCESS>>";
  52     public final static String LIFECYCLE_INITIALIZE_FAILURE =
  53         LIFECYCLE_INITIALIZE + "<<FAILURE>>";
  54     public final static String LIFECYCLE_SHUTDOWN_SUCCESS =
  55         LIFECYCLE_SHUTDOWN + "<<SUCCESS>>";
  56     public final static String LIFECYCLE_SHUTDOWN_FAILURE =
  57         LIFECYCLE_SHUTDOWN + "<<FAILURE>>";
  58     public final static String LIFECYCLE_DESTROY_SUCCESS =
  59         LIFECYCLE_DESTROY + "<<SUCCESS>>";
  60     public final static String LIFECYCLE_DESTROY_FAILURE =
  61         LIFECYCLE_DESTROY + "<<FAILURE>>";
  62 
  63     /**
  64      ** Keywords for Naming Read Loggers.
  65      **/
  66     public final static String NAMING_RESOLVE       = "<<NAMING RESOLVE>>";
  67     public final static String NAMING_LIST          = "<<NAMING LIST>>";
  68 
  69     public final static String NAMING_RESOLVE_SUCCESS =
  70         NAMING_RESOLVE + "<<SUCCESS>>";
  71     public final static String NAMING_RESOLVE_FAILURE =
  72         NAMING_RESOLVE + "<<FAILURE>>";
  73     public final static String NAMING_LIST_SUCCESS =
  74         NAMING_LIST + "<<SUCCESS>>";
  75     public final static String NAMING_LIST_FAILURE =
  76         NAMING_LIST + "<<FAILURE>>";
  77 
  78     /**
  79      ** Keywords for Naming Update Loggers.
  80      **/
  81     public final static String NAMING_BIND          = "<<NAMING BIND>>";
  82     public final static String NAMING_UNBIND        = "<<NAMING UNBIND>>";
  83     public final static String NAMING_REBIND        = "<<NAMING REBIND>>";
  84 
  85     public final static String NAMING_BIND_SUCCESS =
  86         NAMING_BIND + "<<SUCCESS>>";
  87     public final static String NAMING_BIND_FAILURE =
  88         NAMING_BIND + "<<FAILURE>>";
  89     public final static String NAMING_UNBIND_SUCCESS =
  90         NAMING_UNBIND + "<<SUCCESS>>";
  91     public final static String NAMING_UNBIND_FAILURE =
  92         NAMING_UNBIND + "<<FAILURE>>";
  93     public final static String NAMING_REBIND_SUCCESS =
  94         NAMING_REBIND + "<<SUCCESS>>";
  95     public final static String NAMING_REBIND_FAILURE =
  96         NAMING_REBIND + "<<FAILURE>>";
  97 }