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