Upversion artifacts to 1.8.0-SNAPSHOT
[aai/data-router.git] / src / main / java / org / onap / aai / datarouter / logging / EntityEventPolicyMsgs.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 EntityEventPolicyMsgs implements LogMessageEnum {
28
29   // Error Messages
30   /**
31    * Discarding event. 
32    * Arguments:
33    *    {0} = reason
34    *    {1} = Payload:
35    */
36   DISCARD_EVENT_VERBOSE,    
37     
38   /**
39    * Discarding event. 
40    * Arguments:
41    *    {0} = Reason
42    */
43   DISCARD_EVENT_NONVERBOSE,
44   
45   /**
46    * OXM version: {0} is not supported. 
47    * Arguments:
48    *    {0} = OXM Version
49    */
50   OXM_VERSION_NOT_SUPPORTED,
51  
52   /**
53    * Failed to parse UEB payload. 
54    * Arguments:
55    *    {0} 
56    *    {1}
57    */
58   FAILED_TO_PARSE_UEB_PAYLOAD,
59
60   /**
61    * Unable to retrieve etag at {0} for entity with id {1}
62    * Arguments:
63    *    {0} = Resource endpoint.
64    *    {1} = Entity id.
65    */
66   NO_ETAG_AVAILABLE_FAILURE,
67
68   /**
69    * Failed to update entity {0} with operation {1}.
70    * Arguments:
71    *   {0} = Entity 
72    *   {1} = Operation
73    */
74   FAILED_TO_UPDATE_ENTITY_IN_DOCSTORE,
75
76   
77   /**
78    * Action: {0} is not supported.
79    * Argument:
80    *    {0} = Operation
81    */
82   ENTITY_OPERATION_NOT_SUPPORTED,
83
84   /**
85    * Arguments:
86    * {0} = reason
87    */
88   DISCARD_UPDATING_SEARCH_SUGGESTION_DATA,
89   
90   /**
91    * Discarding topographical data. Reason: {0}. Payload: {1}  
92    * Arguments:
93    *    {0} = Reason for discarding data.
94    *    {1} = Payload
95    */
96   DISCARD_UPDATING_TOPOGRAPHY_DATA_VERBOSE,
97       
98   /**
99    * Discarding topographical data. Reason: {0}
100    * Arguments:
101    *    {0} = Reason for discarding data.
102    */
103   DISCARD_UPDATING_TOPOGRAPHY_DATA_NONVERBOSE,
104
105   /**
106    * Failed to load OXM Model.
107    */
108   PROCESS_OXM_MODEL_MISSING,
109
110   /**
111    * Failed to create Search index {0} due to: {1} 
112    * 
113    * Arguments:
114    *    {0} = Search index
115    *    {1} = Error cause
116    */
117   FAIL_TO_CREATE_SEARCH_INDEX,
118
119   /**
120    * Failed to find OXM version in UEB payload. {0}
121    * Arguments:
122    *    {0} = OXM version.
123    */
124   FAILED_TO_FIND_OXM_VERSION,
125
126   
127   // Info Messages
128   
129   /**
130    * Processing AAI Entity Event Policy: 
131    * Arguments:
132    *    {0} = Action
133    *    {1} = Entity Type
134    *    {2} = Payload
135    */
136   PROCESS_ENTITY_EVENT_POLICY_VERBOSE,
137
138   /**
139    * Processing AAI Entity Event Policy: 
140    * Arguments:
141    *     {0} = Action
142    *     {1} = Entity Type 
143    */
144   PROCESS_ENTITY_EVENT_POLICY_NONVERBOSE,
145   
146   /**
147    * Cross Entity Reference synchronization {0}
148    * Arguments:
149    *    {0} = Error string
150    * 
151    */
152   CROSS_ENTITY_REFERENCE_SYNC,
153   
154   /**
155    * Operation {0} completed in {1} ms with no errors
156    * Arguments:
157    *    {0} = Operation type
158    *    {1} = Time in ms.
159    */
160   OPERATION_RESULT_NO_ERRORS,
161   
162   /**
163    * Found OXM model: {0}
164    * Arguments:
165    *    {0} = Key pair.
166    */
167   PROCESS_OXM_MODEL_FOUND,
168   
169   /**
170    * Successfully created index at {0}
171    * 
172    * Arguments:
173    *    {0} = Index resource endpoint
174    */
175   SEARCH_INDEX_CREATE_SUCCESS,
176   
177   /**
178    * Entity Event Policy component started. 
179    */
180   ENTITY_EVENT_POLICY_REGISTERED,
181  
182   /**
183    * Arguments:
184    *    {0} = Entity name
185    */
186   PRIMARY_KEY_NULL_FOR_ENTITY_TYPE,
187
188   /**
189    * Arguments: {0} = UEB payload
190    */
191   UEB_INVALID_PAYLOAD_JSON_FORMAT,
192   
193   /**
194    * Arguments: {0} = Event header
195    */
196   UEB_FAILED_TO_PARSE_PAYLOAD,
197   
198   /**
199    * Arguments: {0} = Exception
200    */
201   UEB_FAILED_UEBEVENTHEADER_CONVERSION,
202
203   /**
204    * Arguments: {0} = UEB event header
205    */
206   UEB_EVENT_HEADER_PARSED;
207   
208   /**
209    * Static initializer to ensure the resource bundles for this class are loaded...
210    */
211   static {
212     EELFResourceManager.loadMessageBundle("logging/EntityEventPolicyMsgs");
213   }
214 }