sonar bug fix: make fields final
[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 final String COLLECT_CHANNEL_KEY = "COLLECT_CHANNEL_KEY";
23     public static final String COLLECT_RESULT_CHANNEL_KEY = "COLLECT_RESULT_CHANNEL_KEY";
24     public static final String COLLECT_RESULT_PM_CHANNEL_KEY = "COLLECT_RESULT_PM_CHANNEL_KEY";
25     public static final String RESULT_CHANNEL_KEY = "RESULT_CHANNEL_KEY";
26     public static final String MSBAPIROOTDOMAIN = "/api/microservices/v1/services";
27     //alarm
28     public static final int READ_TIMEOUT_MILLISECOND = 180000;
29     public static final long ONEMINUTE = 60000;
30     public static final String SYS_HOME = System.getenv("RUNHOME") == null ? System.getProperty("user.dir") : System.getenv("RUNHOME");
31     public static final String SYS_CFG = SYS_HOME + File.separator + "conf" + File.separator;
32     public static final String SYS_DATA = SYS_HOME + File.separator + "data" + File.separator;
33     public static final String SYS_DATA_TEMP = SYS_DATA + File.separator + "temp" + File.separator;
34     public static final String SYS_DATA_RESULT = SYS_DATA + File.separator + "RESULT" + File.separator;
35     public static final String COLLECT_TYPE_CM = "EMS_RESOUCE";
36     public static final String COLLECT_TYPE_PM = "EMS_PERFORMANCE";
37     public static final String COLLECT_TYPE_ALARM = "EMS_ALARM";
38     public static final String ENCODING_UTF8 = "UTF-8";
39     public static final String ENCODING_GBK = "GBK";
40
41 }