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