Merge "Not logged or rethrow this exception."
[aai/data-router.git] / src / main / java / org / onap / aai / datarouter / logging / DataRouterMsgs.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  *
21  * ECOMP is a trademark and service mark of AT&T Intellectual Property.
22  */
23 package org.onap.aai.datarouter.logging;
24
25 import com.att.eelf.i18n.EELFResourceManager;
26
27 import org.onap.aai.cl.eelf.LogMessageEnum;
28
29 public enum DataRouterMsgs implements LogMessageEnum {
30
31   /** Data Layer Service started. */
32   SERVICE_STARTED,
33
34   /**
35    * Data Layer Service failed to start.
36    * Arguments: {0} = Exception message.
37    */
38   STARTUP_FAILURE,
39
40   /**
41    * File has been changed.
42    * Arguments: {0} = File name.
43    */
44   FILE_CHANGED,
45
46   /**
47    * File has been reloaded.
48    * Arguments: {0} = File name.
49    */
50   FILE_RELOADED,
51
52   /**
53    * Reports the configuration watcher interval.
54    * Arguments: {0} = Interval
55    */
56   REPORT_CONFIG_WATCHER_INT,
57
58   /**
59    * Loading properties file.
60    * Arguments: {0} = File name.
61    */
62   LOADING_PROPERTIES,
63
64   /**
65    * Properties file has been loaded.
66    * Arguments: {0} = File name.
67    */
68   PROPERTIES_LOADED,
69
70   /**
71    * UEB no events received.
72    * Arguments: {0} = Topic name
73    */
74   UEB_NO_EVENTS_RECEIVED,
75
76   /**
77    * Routing policies are being configured.
78    */
79   CONFIGURING_ROUTING_POLICIES,
80
81   /**
82    * A properties file could not be successfully loaded.
83    * Arguments: {0} = File name.
84    */
85   LOAD_PROPERTIES_FAILURE,
86
87   /**
88    * Failed to register for an event topic with UEB.
89    * Arguments: {0} = Topic {1} = Error reason
90    */
91   UEB_CONNECT_ERR,
92
93   /**
94    * An error occurred while trying to route a query.
95    * Arguments: {0} = Query {1} = Error reason
96    */
97   QUERY_ROUTING_ERR,
98
99   /**
100    * Error in file monitor block.
101    */
102   FILE_MON_BLOCK_ERR,
103
104   /**
105    * Failure to create a property map.
106    */
107   CREATE_PROPERTY_MAP_ERR,
108
109   /**
110    * An error occurred reading from a file stream.
111    */
112   FILE_STREAM_ERR,
113
114   /**
115    * An error occurred while trying to configure a routing policy.
116    * Arguments: {0} = policy name {1} = source of the routing policy {2} = action of the routing
117    * policy
118    */
119   ROUTING_POLICY_CONFIGURATION_ERROR,
120
121   /**
122    * Received request {0} {1} from {2}. Sending response: {3}
123    * Arguments: {0} = operation {1} = target URL {2} = source {3} = response code
124    */
125   PROCESS_REST_REQUEST,
126
127   /**
128    * Index {0} may not exist in the search data store.  Attempting to create it now.
129    */
130   CREATE_MISSING_INDEX,
131   
132   /**
133    * Processed event {0}. Result: {1}
134    * Arguments: {0} = event topic {1} = result
135    */
136   PROCESS_EVENT,
137
138   /**
139    * Arguments: {0} = Error
140    */
141
142   BAD_REST_REQUEST,
143
144   /**
145    * Arguments: {0} = Search index URL {1} = Reason
146    */
147   FAIL_TO_CREATE_SEARCH_INDEX,
148
149   /**
150    * Arguments: {0} = Successfully created index at endpoint
151    */
152   SEARCH_INDEX_CREATE_SUCCESS,
153   
154   INVALID_OXM_FILE,
155   
156   INVALID_OXM_DIR,
157   LOAD_OXM_ERROR,
158   /**
159    * Successfully loaded schema: {0}
160    *
161    * <p>Arguments:
162    * {0} = oxm filename
163    */
164   LOADED_OXM_FILE,
165   
166   /**
167    * Arguments: {0} = origin payload
168    */
169   INVALID_ORIGIN_PAYLOAD,
170   
171   /**
172    * Arguments: {0} = Origin URL {1} = Target outbound URL
173    */
174   ROUTING_FROM_TO,
175   
176   /**
177    * Arguments: {0} = Target outbound URL, {1} = Response
178    */
179   ROUTING_RESPONSE,
180
181   /**
182    * Failed to create or update document in index {0}.  Cause: {1}
183    * 
184    * Arguments:
185    *    {0} = Index name
186    *    {1} = Failure cause
187    */
188   FAIL_TO_CREATE_UPDATE_DOC,
189   
190   /**
191    * Arguments: {0} = Operation, {1} = Time in ms
192    */
193   OP_TIME,
194
195   /** Arguments: {0} = Schema file location */
196   READING_JSON_SCHEMA_ERROR,
197   
198   /** Arguments: {0} = Error message */
199   JSON_CONVERSION_ERROR;
200   
201   /**
202    * Static initializer to ensure the resource bundles for this class are loaded...
203    */
204   static {
205     EELFResourceManager.loadMessageBundle("logging/DataRouterMsgs");
206   }
207 }