Modify emsdriver Code
[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("RUNHOME")==null?System.getProperty("user.dir"):System.getenv("RUNHOME");
23         
24         public static String SYS_CFG = SYS_HOME + File.separator + "conf" + File.separator;
25         public static String SYS_DATA = SYS_HOME + File.separator  + "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 = "EMS_RESOUCE";
29         public static String COLLECT_TYPE_PM = "EMS_PERFORMANCE";
30         public static String COLLECT_TYPE_ALARM = "EMS_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 COLLECT_RESULT_PM_CHANNEL_KEY = "COLLECT_RESULT_PM_CHANNEL_KEY";
38         public static final String RESULT_CHANNEL_KEY = "RESULT_CHANNEL_KEY";
39         
40         
41         public static final String MSBAPIROOTDOMAIN = "/api/microservices/v1/services";
42         
43         //alarm
44         public static final int READ_TIMEOUT_MILLISECOND = 180000;
45         public static final long  ONEMINUTE = 60000;
46         
47 }