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