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