GyeeConfig.java 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  1. package com.gyee.impala.common.config;
  2. import com.gyee.impala.common.util.JudeSystem;
  3. import lombok.Data;
  4. import org.springframework.boot.context.properties.ConfigurationProperties;
  5. import org.springframework.stereotype.Component;
  6. @Data
  7. @Component
  8. @ConfigurationProperties(prefix = "gyee")
  9. public class GyeeConfig {
  10. /**数据适配器网址 **/
  11. private String goldenUrl;
  12. /**scaada报警网址**/
  13. private String alertUrl;
  14. /** 获取配置服务器*/
  15. private String hostUrl;
  16. /** 样本数据统计开始时间**/
  17. private String initTime;
  18. /***数据模板路径 windows*/
  19. private String templatePathWindow;
  20. /***数据模板路径 linux*/
  21. private String templatePathLinux;
  22. /****kudu的连接地址*/
  23. private String kuduHost;
  24. /***故障诊断脚本路径 windows*/
  25. private String diagnosePathWindow;
  26. /***故障诊断脚本路径 linux*/
  27. private String diagnosePathLinux;
  28. /***故障诊断数据存储路径 windows*/
  29. private String diagnoseFileWindow;
  30. /***故障诊断数据存储路径 linux*/
  31. private String diagnoseFileLinux;
  32. /*** 报警规则是否加密 */
  33. private boolean ruleEncryption;
  34. private String templatePath;
  35. private String diagnosePath;
  36. private String diagnoseFile;
  37. public String getGoldenUrl() {
  38. return goldenUrl;
  39. }
  40. public void setGoldenUrl(String goldenUrl) {
  41. this.goldenUrl = goldenUrl;
  42. }
  43. public String getAlertUrl() {
  44. return alertUrl;
  45. }
  46. public void setAlertUrl(String alertUrl) {
  47. this.alertUrl = alertUrl;
  48. }
  49. public String getHostUrl() {
  50. return hostUrl;
  51. }
  52. public void setHostUrl(String hostUrl) {
  53. this.hostUrl = hostUrl;
  54. }
  55. public String getKuduHost() {
  56. return kuduHost;
  57. }
  58. public void setKuduHost(String kuduHost) {
  59. this.kuduHost = kuduHost;
  60. }
  61. public String getTemplatePath() {
  62. return templatePath = JudeSystem.isWindows() ? getTemplatePathWindow() : JudeSystem.isLinux() ? getTemplatePathLinux() : "";
  63. }
  64. public void setTemplatePath(String templatePath) {
  65. this.templatePath = templatePath;
  66. }
  67. public String getDiagnosePath() {
  68. return JudeSystem.isWindows() ? getDiagnosePathWindow() : JudeSystem.isLinux() ? getDiagnosePathLinux() : "";
  69. }
  70. public void setDiagnosePath(String diagnosePath) {
  71. this.diagnosePath = diagnosePath;
  72. }
  73. public String getDiagnoseFile() {
  74. return diagnoseFile = JudeSystem.isWindows() ? getDiagnoseFileWindow() : JudeSystem.isLinux() ? getDiagnoseFileLinux() : "";
  75. }
  76. public void setDiagnoseFile(String diagnoseFile) {
  77. this.diagnoseFile = diagnoseFile;
  78. }
  79. public boolean getRuleEncryption(){
  80. return ruleEncryption;
  81. }
  82. }