d38de2a7d035341e0a9ea23ddf5213646fa13017
[aai/search-data-service.git] / search-data-service / 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: None
30      */
31     SERVICE_STARTED,
32
33     /**
34      * Arguments: {0} = url
35      */
36     ELASTIC_SEARCH_CONNECTION_ATTEMPT,
37
38     /**
39      * Arguments: {0} = url
40      */
41     ELASTIC_SEARCH_CONNECTION_SUCCESS,
42
43     /**
44      * Arguments: {0} = url {1} = failure cause
45      */
46     ELASTIC_SEARCH_CONNECTION_FAILURE,
47
48     /**
49      * Arguments: {0} = Filter configuration file. {1} = Failure cause.
50      */
51     FILTERS_CONFIG_FAILURE,
52
53     /**
54      * Arguments: {0} = Analysys configuration file. {1} = Failure case.
55      */
56     ANALYSYS_CONFIG_FAILURE,
57
58     /**
59      * Arguments: {0} = Index name
60      */
61     CREATED_INDEX,
62
63     /**
64      * Arguments: {0} = Index name {1} = Document type
65      */
66     CREATE_INDEX_TIME,
67
68     /**
69      * Arguments: {0} = Index name
70      */
71     DELETED_INDEX,
72
73     /**
74      * Arguments: {0} = Index name
75      */
76     DELETE_INDEX_TIME,
77
78     /**
79      * Arguments: {0} = Index name
80      */
81     CHECK_INDEX_TIME,
82
83     /**
84      * Arguments: {0} = Index name
85      */
86     CREATE_DOCUMENT_TIME,
87
88     /**
89      * Arguments: {0} = Index name {1} = Document id
90      */
91     UPDATE_DOCUMENT_TIME,
92
93     /**
94      * Arguments: {0} = Index name {1} = Document id
95      */
96     DELETE_DOCUMENT_TIME,
97
98     /**
99      * Arguments: {0} = Index name {1} = Document id
100      */
101     GET_DOCUMENT_TIME,
102
103     /**
104      * Arguments: {0} = Index name {1} = Query string
105      */
106     QUERY_DOCUMENT_TIME,
107
108     /**
109      * Arguments:
110      */
111     BULK_OPERATIONS_TIME,
112
113     /**
114      * Arguments:
115      */
116     PROCESSED_BULK_OPERATIONS,
117
118     /**
119      * Arguments: {0} = Event {1} = Result
120      */
121     PROCESS_EVENT,
122
123     /**
124      * Arguments: {0} = URL.
125      */
126     PROCESS_INLINE_QUERY,
127
128     /**
129      * Arguments {0} - Operation type (GET or POST) {1} - URL.
130      */
131     PROCESS_PAYLOAD_QUERY,
132
133     /**
134      * Arguments: {0} = Index {1} = Error
135      */
136     INDEX_CREATE_FAILURE,
137
138     /**
139      * Arguments: {0} = Index name {1} = Error cause
140      */
141     INDEX_DELETE_FAILURE,
142
143     /**
144      * Arguments: {0} = Failure cause.
145      */
146     GET_ANALYZERS_FAILURE,
147
148     /**
149      * Arguments: {0} = Failure cause.
150      */
151     BULK_OPERATION_FAILURE,
152
153     /**
154      * Arguments: {0} = Method {1} = Exception
155      */
156     EXCEPTION_DURING_METHOD_CALL,
157
158     /**
159      * Received request {0} {1} from {2}. Sending response: {3}
160      *
161      * <p>
162      * Arguments: {0} = operation {1} = target URL {2} = source {3} = response code
163      */
164     PROCESS_REST_REQUEST,
165
166     STARTUP_EXCEPTION
167     /**
168      * Exception encountered during startup of search service: {0}
169      *
170      * <p>
171      * Arguments: {0} = exception
172      */
173     ;
174
175     /**
176      * Load message bundle (SearchDbMsgs.properties file)
177      */
178     static {
179         EELFResourceManager.loadMessageBundle("logging/SearchDbMsgs");
180     }
181
182 }