2 * ============LICENSE_START=======================================================
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
12 * http://www.apache.org/licenses/LICENSE-2.0
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=========================================================
21 package org.onap.aai.datarouter.logging;
23 import com.att.eelf.i18n.EELFResourceManager;
25 import org.onap.aai.cl.eelf.LogMessageEnum;
27 public enum DataRouterMsgs implements LogMessageEnum {
29 /** Data Layer Service started. */
33 * Data Layer Service failed to start.
34 * Arguments: {0} = Exception message.
39 * File has been changed.
40 * Arguments: {0} = File name.
45 * File has been reloaded.
46 * Arguments: {0} = File name.
51 * Reports the configuration watcher interval.
52 * Arguments: {0} = Interval
54 REPORT_CONFIG_WATCHER_INT,
57 * Loading properties file.
58 * Arguments: {0} = File name.
63 * Properties file has been loaded.
64 * Arguments: {0} = File name.
69 * UEB no events received.
70 * Arguments: {0} = Topic name
72 UEB_NO_EVENTS_RECEIVED,
75 * Routing policies are being configured.
77 CONFIGURING_ROUTING_POLICIES,
80 * A properties file could not be successfully loaded.
81 * Arguments: {0} = File name.
83 LOAD_PROPERTIES_FAILURE,
86 * Failed to register for an event topic with UEB.
87 * Arguments: {0} = Topic {1} = Error reason
92 * An error occurred while trying to route a query.
93 * Arguments: {0} = Query {1} = Error reason
98 * Error in file monitor block.
103 * Failure to create a property map.
105 CREATE_PROPERTY_MAP_ERR,
108 * An error occurred reading from a file stream.
113 * An error occurred while trying to configure a routing policy.
114 * Arguments: {0} = policy name {1} = source of the routing policy {2} = action of the routing
117 ROUTING_POLICY_CONFIGURATION_ERROR,
120 * Received request {0} {1} from {2}. Sending response: {3}
121 * Arguments: {0} = operation {1} = target URL {2} = source {3} = response code
123 PROCESS_REST_REQUEST,
126 * Index {0} may not exist in the search data store. Attempting to create it now.
128 CREATE_MISSING_INDEX,
131 * Processed event {0}. Result: {1}
132 * Arguments: {0} = event topic {1} = result
137 * Arguments: {0} = Error
143 * Arguments: {0} = Search index URL {1} = Reason
145 FAIL_TO_CREATE_SEARCH_INDEX,
148 * Arguments: {0} = Successfully created index at endpoint
150 SEARCH_INDEX_CREATE_SUCCESS,
158 * Arguments: {0} = origin payload
160 INVALID_ORIGIN_PAYLOAD,
163 * Arguments: {0} = Origin URL {1} = Target outbound URL
168 * Arguments: {0} = Target outbound URL, {1} = Response
173 * Failed to create or update document in index {0}. Cause: {1}
177 * {1} = Failure cause
179 FAIL_TO_CREATE_UPDATE_DOC,
182 * Arguments: {0} = Operation, {1} = Time in ms
186 /** Arguments: {0} = Schema file location */
187 READING_JSON_SCHEMA_ERROR,
189 /** Arguments: {0} = Error message */
190 JSON_CONVERSION_ERROR;
193 * Static initializer to ensure the resource bundles for this class are loaded...
196 EELFResourceManager.loadMessageBundle("logging/DataRouterMsgs");