Initial OpenECOMP A&AI Model Loader commit
[aai/model-loader.git] / src / main / java / org / openecomp / modelloader / service / ModelLoaderMsgs.java
1 /*-
2  * ============LICENSE_START=======================================================
3  * MODEL LOADER SERVICE
4  * ================================================================================
5  * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
6  * ================================================================================
7  * Licensed under the Apache License, Version 2.0 (the "License");
8  * you may not use this file except in compliance with the License.
9  * You may obtain a copy of the License at
10  * 
11  *      http://www.apache.org/licenses/LICENSE-2.0
12  * 
13  * Unless required by applicable law or agreed to in writing, software
14  * distributed under the License is distributed on an "AS IS" BASIS,
15  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16  * See the License for the specific language governing permissions and
17  * limitations under the License.
18  * ============LICENSE_END=========================================================
19  */
20
21 package org.openecomp.modelloader.service;
22
23 import com.att.eelf.i18n.EELFResourceManager;
24
25 import org.openecomp.cl.eelf.LogMessageEnum;
26
27 public enum ModelLoaderMsgs implements LogMessageEnum {
28
29   /**
30    * Arguments: None.
31    */
32   LOADING_CONFIGURATION,
33
34   /**
35    * Arguments: None.
36    */
37   STOPPING_CLIENT,
38
39   /**
40    * Arguments: {0} = message.
41    */
42   INITIALIZING,
43
44   /**
45    * Arguments: {0} = reason.
46    */
47   ASDC_CONNECTION_ERROR,
48
49   /**
50    * Arguments: {0} = message.
51    */
52   DISTRIBUTION_EVENT,
53
54   /**
55    * Arguments: {0} = error message.
56    */
57   DISTRIBUTION_EVENT_ERROR, 
58   
59   /**
60     * Arguments: {0} = request type.
61     *            {1} = endpoint. 
62     *            {2} = result code.
63     */
64   AAI_REST_REQUEST_SUCCESS,
65
66   /**
67    * Arguments: {0} = request type. 
68    *            {1} = endpoint. 
69    *            {2} = result code. 
70    *            {3} = result.
71    * message
72    */
73   AAI_REST_REQUEST_UNSUCCESSFUL,
74
75   /**
76    * Arguments: {0} = request type. 
77    *            {1} = endpoint.
78    *            {2} = error message.
79    */
80   AAI_REST_REQUEST_ERROR,
81
82   /**
83    * Arguments: {0} = artifact name. 
84    *            {1} = result.
85    */
86   DOWNLOAD_COMPLETE,
87
88   /**
89    * Arguments: {0} = event. 
90    *            {1} = artifact name. 
91    *            {2} = result.
92    */
93   EVENT_PUBLISHED;
94
95   /**
96    * Load message bundle (ModelLoaderMsgs.properties file)
97    */
98   static {
99     EELFResourceManager.loadMessageBundle("org/openecomp/modelloader/service/ModelLoaderMsgs");
100   }
101
102 }