2ddbff4c9b90cdee23a59e0f5efd045656b56e11
[aai/champ.git] / champ-service / src / main / java / org / onap / champ / service / logging / ChampMsgs.java
1 /**
2  * ============LICENSE_START==========================================
3  * org.onap.aai
4  * ===================================================================
5  * Copyright © 2017 AT&T Intellectual Property. All rights reserved.
6  * Copyright © 2017 Amdocs
7  * ===================================================================
8  * Licensed under the Apache License, Version 2.0 (the "License");
9  * you may not use this file except in compliance with the License.
10  * You may obtain a copy of the License at
11  *
12  *        http://www.apache.org/licenses/LICENSE-2.0
13  *
14  * Unless required by applicable law or agreed to in writing, software
15  * distributed under the License is distributed on an "AS IS" BASIS,
16  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17  * See the License for the specific language governing permissions and
18  * limitations under the License.
19  * ============LICENSE_END============================================
20  * ECOMP is a trademark and service mark of AT&T Intellectual Property.
21  */
22 package org.onap.champ.service.logging;
23
24 import com.att.eelf.i18n.EELFResourceManager;
25 import org.onap.aai.cl.eelf.LogMessageEnum;
26
27 public enum ChampMsgs implements LogMessageEnum {
28
29   /**
30    * Received request {0} {1} from {2}. Sending response: {3}
31    *
32    * <p>
33    * Arguments: {0} = operation {1} = target URL {2} = source {3} = response
34    * code
35    */
36     PROCESS_REST_REQUEST, 
37   /**
38      * Processed event {0}. Result: {1}.
39      *
40      * Arguments: {0} = event {1} = result
41      */
42     PROCESS_EVENT,
43
44     /**
45     * Query: {0}
46      * Arguments: {0} = query
47     */
48     QUERY,
49
50     /**
51      * Arguments: {0}  = transactionID, {1} = request
52      */
53     INCOMING_REQUEST,
54
55     /**
56      * Arguments: {0}  = HTTP request type, {1} = time to process in milliseconds
57      */
58     PROCESSED_REQUEST,
59
60     /**
61      * Arguments: {0} = transaction ID
62      */
63     TRANSACTION_NOT_FOUND,
64
65     /**
66      * Arguments: {0} = request, {1} = Error
67      */
68     BAD_REQUEST,
69
70   /**
71    * Arguments: {0} = Info
72    */
73   CHAMP_TX_CACHE,
74   
75   /**
76    * Any info log related to CHAMP_ASYNC_REQUEST_PROCESSOR_INFO
77    *
78    * <p>Arguments:
79    * {0} - Info.
80    */
81   CHAMP_ASYNC_REQUEST_PROCESSOR_INFO,
82   CHAMP_ASYNC_REQUEST_PROCESSOR_WARN,
83
84   /**
85    * Any error log related to CHAMP_ASYNC_REQUEST_PROCESSOR_ERROR
86    *
87    * <p>Arguments:
88    * {0} - Error.
89    */
90   CHAMP_ASYNC_REQUEST_PROCESSOR_ERROR,
91   
92   /**
93    * Any info log related to CHAMP_DATA_SERVICE_INFO
94    *
95    * <p>Arguments:
96    * {0} - Info.
97    */
98   CHAMP_DATA_SERVICE_INFO,
99
100   /**
101    * Any error log related to CHAMP_DATA_SERVICE_INFO
102    *
103    * <p>Arguments:
104    * {0} - Error.
105    */
106   CHAMP_DATA_SERVICE_ERROR,
107   
108
109   /**
110    * Any info log related to CHAMP_ASYNC_RESPONSE_PUBLISHER_INFO
111    *
112    * <p>Arguments:
113    * {0} - Info.
114    */
115   CHAMP_ASYNC_RESPONSE_PUBLISHER_INFO,
116
117   /**
118    * Any error log related to CHAMP_ASYNC_RESPONSE_PUBLISHER_ERROR
119    *
120    * <p>Arguments:
121    * {0} - Error.
122    */
123   CHAMP_ASYNC_RESPONSE_PUBLISHER_ERROR;
124     /**
125      * Static initializer to ensure the resource bundles for this class are loaded...
126      */
127     static {
128         EELFResourceManager.loadMessageBundle("logging/ChampMsgs");
129     }
130 }