[DMAAP-48] Initial code import
[dmaap/datarouter.git] / datarouter-node / src / main / java / com / att / research / datarouter / node / eelf / EelfMsgs.java
diff --git a/datarouter-node/src/main/java/com/att/research/datarouter/node/eelf/EelfMsgs.java b/datarouter-node/src/main/java/com/att/research/datarouter/node/eelf/EelfMsgs.java
new file mode 100644 (file)
index 0000000..9963f41
--- /dev/null
@@ -0,0 +1,96 @@
+/*******************************************************************************\r
+ * ============LICENSE_START==================================================\r
+ * * org.onap.dmaap\r
+ * * ===========================================================================\r
+ * * Copyright © 2017 AT&T Intellectual Property. All rights reserved.\r
+ * * ===========================================================================\r
+ * * Licensed under the Apache License, Version 2.0 (the "License");\r
+ * * you may not use this file except in compliance with the License.\r
+ * * You may obtain a copy of the License at\r
+ * * \r
+ *  *      http://www.apache.org/licenses/LICENSE-2.0\r
+ * * \r
+ *  * Unless required by applicable law or agreed to in writing, software\r
+ * * distributed under the License is distributed on an "AS IS" BASIS,\r
+ * * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+ * * See the License for the specific language governing permissions and\r
+ * * limitations under the License.\r
+ * * ============LICENSE_END====================================================\r
+ * *\r
+ * * ECOMP is a trademark and service mark of AT&T Intellectual Property.\r
+ * *\r
+ ******************************************************************************/\r
+package com.att.research.datarouter.node.eelf;\r
+\r
+import com.att.eelf.i18n.EELFResolvableErrorEnum;\r
+import com.att.eelf.i18n.EELFResourceManager;\r
+\r
+public enum EelfMsgs implements EELFResolvableErrorEnum {\r
+       \r
+       /**\r
+     * Application message prints user (accepts one argument)\r
+     */\r
+       MESSAGE_WITH_BEHALF,\r
+\r
+       /**\r
+     * Application message prints user and FeedID (accepts two arguments)\r
+     */\r
+\r
+       MESSAGE_WITH_BEHALF_AND_FEEDID,\r
+       \r
+       /**\r
+     * Application message prints keystore file error in EELF errors log\r
+     */\r
+\r
+       MESSAGE_KEYSTORE_LOAD_ERROR,\r
+       \r
+       /**\r
+     * Application message prints Error extracting my name from my keystore file\r
+     */\r
+\r
+       MESSAGE_KEYSORE_NAME_ERROR,     \r
+       \r
+       /**\r
+     * Application message prints Error parsing configuration data from provisioning server.\r
+     */\r
+\r
+\r
+       MESSAGE_PARSING_ERROR,          \r
+       \r
+       /**\r
+     * Application message printsConfiguration failed\r
+     */\r
+\r
+\r
+       MESSAGE_CONF_FAILED,            \r
+       \r
+       /**\r
+     * Application message prints Bad provisioning server URL\r
+     */\r
+\r
+\r
+       MESSAGE_BAD_PROV_URL,           \r
+       \r
+       /**\r
+     * Application message prints Unable to fetch canonical name from keystore file\r
+     */\r
+\r
+\r
+       MESSAGE_KEYSTORE_FETCH_ERROR,\r
+       \r
+       /**\r
+     * Application message prints Unable to load local configuration file.\r
+     */\r
+\r
+\r
+       MESSAGE_PROPERTIES_LOAD_ERROR;\r
+\r
+    \r
+    /**\r
+     * Static initializer to ensure the resource bundles for this class are loaded...\r
+     * Here this application loads messages from three bundles\r
+     */\r
+    static {\r
+        EELFResourceManager.loadMessageBundle("EelfMessages");\r
+    }\r
+}\r