[DMAAP-48] Initial code import
[dmaap/datarouter.git] / datarouter-node / src / main / java / com / att / research / datarouter / node / eelf / EelfMsgs.java
1 /*******************************************************************************\r
2  * ============LICENSE_START==================================================\r
3  * * org.onap.dmaap\r
4  * * ===========================================================================\r
5  * * Copyright © 2017 AT&T Intellectual Property. All rights reserved.\r
6  * * ===========================================================================\r
7  * * Licensed under the Apache License, Version 2.0 (the "License");\r
8  * * you may not use this file except in compliance with the License.\r
9  * * You may obtain a copy of the License at\r
10  * * \r
11  *  *      http://www.apache.org/licenses/LICENSE-2.0\r
12  * * \r
13  *  * Unless required by applicable law or agreed to in writing, software\r
14  * * distributed under the License is distributed on an "AS IS" BASIS,\r
15  * * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
16  * * See the License for the specific language governing permissions and\r
17  * * limitations under the License.\r
18  * * ============LICENSE_END====================================================\r
19  * *\r
20  * * ECOMP is a trademark and service mark of AT&T Intellectual Property.\r
21  * *\r
22  ******************************************************************************/\r
23 package com.att.research.datarouter.node.eelf;\r
24 \r
25 import com.att.eelf.i18n.EELFResolvableErrorEnum;\r
26 import com.att.eelf.i18n.EELFResourceManager;\r
27 \r
28 public enum EelfMsgs implements EELFResolvableErrorEnum {\r
29         \r
30         /**\r
31      * Application message prints user (accepts one argument)\r
32      */\r
33         MESSAGE_WITH_BEHALF,\r
34 \r
35         /**\r
36      * Application message prints user and FeedID (accepts two arguments)\r
37      */\r
38 \r
39         MESSAGE_WITH_BEHALF_AND_FEEDID,\r
40         \r
41         /**\r
42      * Application message prints keystore file error in EELF errors log\r
43      */\r
44 \r
45         MESSAGE_KEYSTORE_LOAD_ERROR,\r
46         \r
47         /**\r
48      * Application message prints Error extracting my name from my keystore file\r
49      */\r
50 \r
51         MESSAGE_KEYSORE_NAME_ERROR,     \r
52         \r
53         /**\r
54      * Application message prints Error parsing configuration data from provisioning server.\r
55      */\r
56 \r
57 \r
58         MESSAGE_PARSING_ERROR,          \r
59         \r
60         /**\r
61      * Application message printsConfiguration failed\r
62      */\r
63 \r
64 \r
65         MESSAGE_CONF_FAILED,            \r
66         \r
67         /**\r
68      * Application message prints Bad provisioning server URL\r
69      */\r
70 \r
71 \r
72         MESSAGE_BAD_PROV_URL,           \r
73         \r
74         /**\r
75      * Application message prints Unable to fetch canonical name from keystore file\r
76      */\r
77 \r
78 \r
79         MESSAGE_KEYSTORE_FETCH_ERROR,\r
80         \r
81         /**\r
82      * Application message prints Unable to load local configuration file.\r
83      */\r
84 \r
85 \r
86         MESSAGE_PROPERTIES_LOAD_ERROR;\r
87 \r
88     \r
89     /**\r
90      * Static initializer to ensure the resource bundles for this class are loaded...\r
91      * Here this application loads messages from three bundles\r
92      */\r
93     static {\r
94         EELFResourceManager.loadMessageBundle("EelfMessages");\r
95     }\r
96 }\r