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