2 * ============LICENSE_START=======================================================
4 * ================================================================================
5 * Copyright © 2017 AT&T Intellectual Property.
6 * Copyright © 2017 Amdocs
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 at
13 * http://www.apache.org/licenses/LICENSE-2.0
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=========================================================
22 * ECOMP and OpenECOMP are trademarks
23 * and service marks of AT&T Intellectual Property.
25 package org.openecomp.datarouter.logging;
27 import com.att.eelf.i18n.EELFResourceManager;
29 import org.openecomp.cl.eelf.LogMessageEnum;
31 public enum DataRouterMsgs implements LogMessageEnum {
33 /** Data Layer Service started. */
37 * Data Layer Service failed to start.
38 * Arguments: {0} = Exception message.
43 * File has been changed.
44 * Arguments: {0} = File name.
49 * File has been reloaded.
50 * Arguments: {0} = File name.
55 * Reports the configuration watcher interval.
56 * Arguments: {0} = Interval
58 REPORT_CONFIG_WATCHER_INT,
61 * Loading properties file.
62 * Arguments: {0} = File name.
67 * Properties file has been loaded.
68 * Arguments: {0} = File name.
73 * UEB no events received.
74 * Arguments: {0} = Topic name
76 UEB_NO_EVENTS_RECEIVED,
79 * Routing policies are being configured.
81 CONFIGURING_ROUTING_POLICIES,
84 * A properties file could not be successfully loaded.
85 * Arguments: {0} = File name.
87 LOAD_PROPERTIES_FAILURE,
90 * Failed to register for an event topic with UEB.
91 * Arguments: {0} = Topic {1} = Error reason
96 * An error occurred while trying to route a query.
97 * Arguments: {0} = Query {1} = Error reason
102 * Error in file monitor block.
107 * Failure to create a property map.
109 CREATE_PROPERTY_MAP_ERR,
112 * An error occurred reading from a file stream.
117 * An error occurred while trying to configure a routing policy.
118 * Arguments: {0} = policy name {1} = source of the routing policy {2} = action of the routing
121 ROUTING_POLICY_CONFIGURATION_ERROR,
124 * Received request {0} {1} from {2}. Sending response: {3}
125 * Arguments: {0} = operation {1} = target URL {2} = source {3} = response code
127 PROCESS_REST_REQUEST,
130 * Index {0} may not exist in the search data store. Attempting to create it now.
132 CREATE_MISSING_INDEX,
135 * Processed event {0}. Result: {1}
136 * Arguments: {0} = event topic {1} = result
141 * Arguments: {0} = Error
147 * Arguments: {0} = Search index URL {1} = Reason
149 FAIL_TO_CREATE_SEARCH_INDEX,
152 * Arguments: {0} = Successfully created index at endpoint
154 SEARCH_INDEX_CREATE_SUCCESS,
161 * Successfully loaded schema: {0}
169 * Arguments: {0} = origin payload
171 INVALID_ORIGIN_PAYLOAD,
174 * Arguments: {0} = Origin URL {1} = Target outbound URL
179 * Arguments: {0} = Target outbound URL, {1} = Response
184 * Failed to create or update document in index {0}. Cause: {1}
188 * {1} = Failure cause
190 FAIL_TO_CREATE_UPDATE_DOC,
193 * Arguments: {0} = Operation, {1} = Time in ms
197 /** Arguments: {0} = Schema file location */
198 READING_JSON_SCHEMA_ERROR,
200 /** Arguments: {0} = Error message */
201 JSON_CONVERSION_ERROR;
204 * Static initializer to ensure the resource bundles for this class are loaded...
207 EELFResourceManager.loadMessageBundle("logging/DataRouterMsgs");