123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115 |
- package com.gyee.impala.common.config;
- import com.gyee.impala.common.util.JudeSystem;
- import lombok.Data;
- import org.springframework.boot.context.properties.ConfigurationProperties;
- import org.springframework.stereotype.Component;
- @Data
- @Component
- @ConfigurationProperties(prefix = "gyee")
- public class GyeeConfig {
- /**数据适配器网址 **/
- private String goldenUrl;
- /**scaada报警网址**/
- private String alertUrl;
- /** 获取配置服务器*/
- private String hostUrl;
- /** 样本数据统计开始时间**/
- private String initTime;
- /***数据模板路径 windows*/
- private String templatePathWindow;
- /***数据模板路径 linux*/
- private String templatePathLinux;
- /****kudu的连接地址*/
- private String kuduHost;
- /***故障诊断脚本路径 windows*/
- private String diagnosePathWindow;
- /***故障诊断脚本路径 linux*/
- private String diagnosePathLinux;
- /***故障诊断数据存储路径 windows*/
- private String diagnoseFileWindow;
- /***故障诊断数据存储路径 linux*/
- private String diagnoseFileLinux;
- /*** 报警规则是否加密 */
- private boolean ruleEncryption;
- private String templatePath;
- private String diagnosePath;
- private String diagnoseFile;
- public String getGoldenUrl() {
- return goldenUrl;
- }
- public void setGoldenUrl(String goldenUrl) {
- this.goldenUrl = goldenUrl;
- }
- public String getAlertUrl() {
- return alertUrl;
- }
- public void setAlertUrl(String alertUrl) {
- this.alertUrl = alertUrl;
- }
- public String getHostUrl() {
- return hostUrl;
- }
- public void setHostUrl(String hostUrl) {
- this.hostUrl = hostUrl;
- }
- public String getKuduHost() {
- return kuduHost;
- }
- public void setKuduHost(String kuduHost) {
- this.kuduHost = kuduHost;
- }
- public String getTemplatePath() {
- return templatePath = JudeSystem.isWindows() ? getTemplatePathWindow() : JudeSystem.isLinux() ? getTemplatePathLinux() : "";
- }
- public void setTemplatePath(String templatePath) {
- this.templatePath = templatePath;
- }
- public String getDiagnosePath() {
- return JudeSystem.isWindows() ? getDiagnosePathWindow() : JudeSystem.isLinux() ? getDiagnosePathLinux() : "";
- }
- public void setDiagnosePath(String diagnosePath) {
- this.diagnosePath = diagnosePath;
- }
- public String getDiagnoseFile() {
- return diagnoseFile = JudeSystem.isWindows() ? getDiagnoseFileWindow() : JudeSystem.isLinux() ? getDiagnoseFileLinux() : "";
- }
- public void setDiagnoseFile(String diagnoseFile) {
- this.diagnoseFile = diagnoseFile;
- }
- public boolean getRuleEncryption(){
- return ruleEncryption;
- }
- }
|