Modify groupId for ems driver
[vfc/nfvo/driver/ems.git] / ems / boco / src / main / java / org / onap / vfc / nfvo / emsdriver / commons / constant / Constant.java
1 /**
2  * Copyright 2017 BOCO Corporation.  CMCC Technologies Co., Ltd
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *     http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 package org.onap.vfc.nfvo.emsdriver.commons.constant;
17
18 import java.io.File;
19
20 public class Constant {
21         
22         public static String SYS_HOME = System.getenv("EMSDRIVER_HOME")==null?"E:/workspace/ems-driver/":System.getenv("EMSDRIVER_HOME");
23         
24         public static String SYS_CFG = SYS_HOME + File.separator + "cfg" + File.separator;
25         public static String SYS_DATA = SYS_HOME  + "data" + File.separator;
26         public static String SYS_DATA_TEMP = SYS_DATA + File.separator + "temp" + File.separator;
27         public static String SYS_DATA_RESULT = SYS_DATA + File.separator + "RESULT" + File.separator;
28         public static String COLLECT_TYPE_CM = "cm";
29         public static String COLLECT_TYPE_PM = "pm";
30         public static String COLLECT_TYPE_ALARM = "alarm";
31         
32         public static String ENCODING_UTF8 = "UTF-8";
33         public static String ENCODING_GBK = "GBK";
34         
35         public static final String COLLECT_CHANNEL_KEY = "COLLECT_CHANNEL_KEY";
36         public static final String COLLECT_RESULT_CHANNEL_KEY = "COLLECT_RESULT_CHANNEL_KEY";
37         public static final String ALARM_CHANNEL_KEY = "ALARM_CHANNEL_KEY";
38         
39         
40         public static final String MSBAPIROOTDOMAIN = "/api/microservices/v1/services";
41         
42         //alarm
43         public static final int READ_TIMEOUT_MILLISECOND = 180000;
44         public static final long  ONEMINUTE = 60000;
45         
46 }