2 * ============LICENSE_START=======================================================
\r
4 * ================================================================================
\r
5 * Copyright © 2017-2018 AT&T Intellectual Property. All rights reserved.
\r
6 * Copyright © 2017-2018 Amdocs
\r
7 * ================================================================================
\r
8 * Licensed under the Apache License, Version 2.0 (the "License");
\r
9 * you may not use this file except in compliance with the License.
\r
10 * You may obtain a copy of the License at
\r
12 * http://www.apache.org/licenses/LICENSE-2.0
\r
14 * Unless required by applicable law or agreed to in writing, software
\r
15 * distributed under the License is distributed on an "AS IS" BASIS,
\r
16 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
\r
17 * See the License for the specific language governing permissions and
\r
18 * limitations under the License.
\r
19 * ============LICENSE_END=========================================================
\r
21 package org.onap.aai.datarouter.logging;
\r
23 import com.att.eelf.i18n.EELFResourceManager;
\r
24 import org.onap.aai.cl.eelf.LogMessageEnum;
\r
26 public enum DataRouterMsgs implements LogMessageEnum {
\r
28 /** Data Layer Service started. */
\r
32 * Data Layer Service failed to start.
\r
33 * Arguments: {0} = Exception message.
\r
38 * File has been changed.
\r
39 * Arguments: {0} = File name.
\r
44 * File has been reloaded.
\r
45 * Arguments: {0} = File name.
\r
50 * Reports the configuration watcher interval.
\r
51 * Arguments: {0} = Interval
\r
53 REPORT_CONFIG_WATCHER_INT,
\r
56 * Loading properties file.
\r
57 * Arguments: {0} = File name.
\r
62 * Properties file has been loaded.
\r
63 * Arguments: {0} = File name.
\r
68 * UEB no events received.
\r
69 * Arguments: {0} = Topic name
\r
71 UEB_NO_EVENTS_RECEIVED,
\r
74 * Routing policies are being configured.
\r
76 CONFIGURING_ROUTING_POLICIES,
\r
79 * A properties file could not be successfully loaded.
\r
80 * Arguments: {0} = File name.
\r
82 LOAD_PROPERTIES_FAILURE,
\r
85 * Failed to register for an event topic with UEB.
\r
86 * Arguments: {0} = Topic {1} = Error reason
\r
91 * An error occurred while trying to route a query.
\r
92 * Arguments: {0} = Query {1} = Error reason
\r
97 * Error in file monitor block.
\r
102 * Failure to create a property map.
\r
104 CREATE_PROPERTY_MAP_ERR,
\r
107 * An error occurred reading from a file stream.
\r
112 * An error occurred while trying to configure a routing policy.
\r
113 * Arguments: {0} = policy name {1} = source of the routing policy {2} = action of the routing
\r
116 ROUTING_POLICY_CONFIGURATION_ERROR,
\r
119 * Received request {0} {1} from {2}. Sending response: {3}
\r
120 * Arguments: {0} = operation {1} = target URL {2} = source {3} = response code
\r
122 PROCESS_REST_REQUEST,
\r
125 * Index {0} may not exist in the search data store. Attempting to create it now.
\r
127 CREATE_MISSING_INDEX,
\r
130 * Processed event {0}. Result: {1}
\r
131 * Arguments: {0} = event topic {1} = result
\r
136 * Arguments: {0} = Error
\r
142 * Arguments: {0} = Search index URL {1} = Reason
\r
144 FAIL_TO_CREATE_SEARCH_INDEX,
\r
147 * Arguments: {0} = Successfully created index at endpoint
\r
149 SEARCH_INDEX_CREATE_SUCCESS,
\r
157 * Arguments: {0} = origin payload
\r
159 INVALID_ORIGIN_PAYLOAD,
\r
162 * Arguments: {0} = Origin URL {1} = Target outbound URL
\r
167 * Arguments: {0} = Target outbound URL, {1} = Response
\r
172 * Failed to create or update document in index {0}. Cause: {1}
\r
176 * {1} = Failure cause
\r
178 FAIL_TO_CREATE_UPDATE_DOC,
\r
181 * Arguments: {0} = Operation, {1} = Time in ms
\r
185 /** Arguments: {0} = Schema file location */
\r
186 READING_JSON_SCHEMA_ERROR,
\r
188 /** Arguments: {0} = Error message */
\r
189 JSON_CONVERSION_ERROR,
\r
192 * Operation: {0}; URI: {1}; Exception: {2}
\r
194 EXCEPTION_DURING_METHOD_CALL,
\r
197 * Failed to publish {0} event(s) to DMaaP; cause: {1}
\r
198 * Arguments: {0} = number of events; {1} = cause
\r
200 FAIL_TO_SEND_TO_DMAAP,
\r
203 * Failed to authenticate: {0}
\r
204 * Arguments: {0} = reason
\r
206 FAIL_TO_AUTHENTICATE,
\r
209 * Invalid value for configuration '{0}'; using default value {1}
\r
210 * Arguments: {0} config attribute; {1} default value
\r
212 WARN_USING_DEFAULT;
\r
214 * Static initializer to ensure the resource bundles for this class are loaded...
\r
217 EELFResourceManager.loadMessageBundle("logging/DataRouterMsgs");
\r