Cleanup project's name in Sonar
[aai/search-data-service.git] / src / main / java / org / onap / aai / sa / searchdbabstraction / logging / SearchDbMsgs.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.sa.searchdbabstraction.logging;
24
25 import com.att.eelf.i18n.EELFResourceManager;
26 import org.openecomp.cl.eelf.LogMessageEnum;
27
28 public enum SearchDbMsgs implements LogMessageEnum {
29
30   /**
31    * Arguments:
32    * None
33    */
34   SERVICE_STARTED,
35
36   /**
37    * Arguments:
38    * {0} = url
39    */
40   ELASTIC_SEARCH_CONNECTION_ATTEMPT,
41
42   /**
43    * Arguments:
44    * {0} = url
45    */
46   ELASTIC_SEARCH_CONNECTION_SUCCESS,
47
48   /**
49    * Arguments:
50    * {0} = url
51    * {1} = failure cause
52    */
53   ELASTIC_SEARCH_CONNECTION_FAILURE,
54
55   /**
56    * Arguments:
57    * {0} = Filter configuration file.
58    * {1} = Failure cause.
59    */
60   FILTERS_CONFIG_FAILURE,
61
62   /**
63    * Arguments:
64    * {0} = Analysys configuration file.
65    * {1} = Failure case.
66    */
67   ANALYSYS_CONFIG_FAILURE,
68
69   /**
70    * Arguments:
71    * {0} = Index name
72    */
73   CREATED_INDEX,
74
75   /**
76    * Arguments:
77    * {0} = Index name
78    * {1} = Document type
79    */
80   CREATE_INDEX_TIME,
81
82   /**
83    * Arguments:
84    * {0} = Index name
85    */
86   DELETED_INDEX,
87
88   /**
89    * Arguments:
90    * {0} = Index name
91    */
92   DELETE_INDEX_TIME,
93
94   /**
95    * Arguments:
96    * {0} = Index name
97    */
98   CHECK_INDEX_TIME,
99
100   /**
101    * Arguments:
102    * {0} = Index name
103    */
104   CREATE_DOCUMENT_TIME,
105
106   /**
107    * Arguments:
108    * {0} = Index name
109    * {1} = Document id
110    */
111   UPDATE_DOCUMENT_TIME,
112
113   /**
114    * Arguments:
115    * {0} = Index name
116    * {1} = Document id
117    */
118   DELETE_DOCUMENT_TIME,
119
120   /**
121    * Arguments:
122    * {0} = Index name
123    * {1} = Document id
124    */
125   GET_DOCUMENT_TIME,
126
127   /**
128    * Arguments:
129    * {0} = Index name
130    * {1} = Query string
131    */
132   QUERY_DOCUMENT_TIME,
133
134   /**
135    * Arguments:
136    */
137   BULK_OPERATIONS_TIME,
138
139   /**
140    * Arguments:
141    */
142   PROCESSED_BULK_OPERATIONS,
143
144   /**
145    * Arguments:
146    * {0} = Event
147    * {1} = Result
148    */
149   PROCESS_EVENT,
150
151   /**
152    * Arguments:
153    * {0} = URL.
154    */
155   PROCESS_INLINE_QUERY,
156
157   /**
158    * Arguments
159    * {0} - Operation type (GET or POST)
160    * {1} - URL.
161    */
162   PROCESS_PAYLOAD_QUERY,
163
164   /**
165    * Arguments:
166    * {0} = Index
167    * {1} = Error
168    */
169   INDEX_CREATE_FAILURE,
170
171   /**
172    * Arguments:
173    * {0} = Index name
174    * {1} = Error cause
175    */
176   INDEX_DELETE_FAILURE,
177
178   /**
179    * Arguments:
180    * {0} = Failure cause.
181    */
182   GET_ANALYZERS_FAILURE,
183
184   /**
185    * Arguments:
186    * {0} = Failure cause.
187    */
188   BULK_OPERATION_FAILURE,
189
190   /**
191    * Arguments:
192    * {0} = Method
193    * {1} = Exception
194    */
195   EXCEPTION_DURING_METHOD_CALL,
196
197   /**
198    * Received request {0} {1} from {2}.  Sending response: {3}
199    *
200    * <p>Arguments:
201    * {0} = operation
202    * {1} = target URL
203    * {2} = source
204    * {3} = response code
205    */
206   PROCESS_REST_REQUEST,
207
208   STARTUP_EXCEPTION
209   /**
210    * Exception encountered during startup of search service: {0}
211    *
212    * <p>Arguments:
213    *    {0} = exception
214    */
215   ;
216
217   /**
218    * Load message bundle (SearchDbMsgs.properties file)
219    */
220   static {
221     EELFResourceManager.loadMessageBundle("logging/SearchDbMsgs");
222   }
223
224 }