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