5c0da9c45e05c8b9eba9710af54f05722245cc02
[aai/gizmo.git] / src / main / java / org / onap / crud / logging / CrudServiceMsgs.java
1 /**
2  * ============LICENSE_START=======================================================
3  * Gizmo
4  * ================================================================================
5  * Copyright © 2017 AT&T Intellectual Property.
6  * Copyright © 2017 Amdocs
7  * All rights reserved.
8  * ================================================================================
9  * Licensed under the Apache License, Version 2.0 (the "License");
10  * you may not use this file except in compliance with the License.
11  * You may obtain a copy of the License at
12  *
13  *    http://www.apache.org/licenses/LICENSE-2.0
14  *
15  * Unless required by applicable law or agreed to in writing, software
16  * distributed under the License is distributed on an "AS IS" BASIS,
17  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18  * See the License for the specific language governing permissions and
19  * limitations under the License.
20  * ============LICENSE_END=========================================================
21  *
22  * ECOMP is a trademark and service mark of AT&T Intellectual Property.
23  */
24 package org.onap.crud.logging;
25
26 import com.att.eelf.i18n.EELFResourceManager;
27
28 import org.onap.aai.cl.eelf.LogMessageEnum;
29
30 public enum CrudServiceMsgs implements LogMessageEnum {
31
32   /**
33    * Received request {0} {1} from {2}. Sending response: {3}
34    *
35    * <p>
36    * Arguments: {0} = operation {1} = target URL {2} = source {3} = response
37    * code
38    */
39   PROCESS_REST_REQUEST,
40
41   INVALID_OXM_FILE, INVALID_OXM_DIR, OXM_FILE_CHANGED, TRANSACTION,
42
43   /**
44    * Successfully loaded schema: {0}
45    *
46    * <p>
47    * Arguments: {0} = oxm filename
48    */
49   LOADED_OXM_FILE,
50
51   /**
52    * Unable to load OXM schema: {0}
53    *
54    * <p>
55    * Arguments: {0} = error
56    */
57   OXM_LOAD_ERROR,
58
59   /**
60    * Stopping ChampDAO...
61    *
62    * <p>
63    * Arguments:
64    */
65   STOPPING_CHAMP_DAO,
66
67   /**
68    * Failure instantiating CRUD Rest Service. Cause: {0}
69    *
70    * <p>
71    * Arguments: {0} - Failure cause.
72    */
73   INSTANTIATE_AUTH_ERR,
74
75   /**
76    * Any info log related to ASYNC_DATA_SERVICE_INFO
77    *
78    * <p>Arguments:
79    * {0} - Info.
80    */
81   ASYNC_DATA_SERVICE_INFO,
82   
83   /**
84    * Any error log related to ASYNC_DATA_SERVICE_ERROR
85    *
86    * <p>Arguments:
87    * {0} - Error.
88    */
89   ASYNC_DATA_SERVICE_ERROR,
90   
91   /**
92    * Any info log related to ASYNC_DATA_CACHE_INFO
93    *
94    * <p>Arguments:
95    * {0} - Info.
96    */
97   ASYNC_DATA_CACHE_INFO,
98
99   /**
100    * Any error log related to ASYNC_DATA_CACHE_ERROR
101    *
102    * <p>Arguments:
103    * {0} - Error.
104    */
105   ASYNC_DATA_CACHE_ERROR,
106   
107   /**
108    * Any info log related to ASYNC_RESPONSE_CONSUMER_INFO
109    *
110    * <p>Arguments:
111    * {0} - Info.
112    */
113   ASYNC_RESPONSE_CONSUMER_INFO,
114
115   /**
116    * Any error log related to ASYNC_RESPONSE_CONSUMER_ERROR
117    *
118    * <p>Arguments:
119    * {0} - Error.
120    */
121   ASYNC_RESPONSE_CONSUMER_ERROR,
122
123   /**
124    * Arguments: {0} Opertaion {1} URI {2} = Exception
125    */
126   EXCEPTION_DURING_METHOD_CALL;
127
128   /**
129    * Static initializer to ensure the resource bundles for this class are
130    * loaded...
131    */
132   static {
133     EELFResourceManager.loadMessageBundle("logging/CrudServiceMsgs");
134   }
135 }