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