配置规范化类:CloudProps
标准的 Solon Cloud 配置,由 CloudProps 配置类确保配置的规范化和统一性(也可通过接口获取规范之外的配置项)。其内部,标准化配置名录(@@表示占位符):
private String ROOT = "solon.cloud.@@.";
private String SERVER = "solon.cloud.@@.server";
private String TOKEN = "solon.cloud.@@.token";
private String ALARM = "solon.cloud.@@.alarm";
private String NAMESPACE = "solon.cloud.@@.namespace"; //v2.7.6 后支持
private String USERNAME = "solon.cloud.@@.username";
private String PASSWORD = "solon.cloud.@@.password";
private String ACCESS_KEY = "solon.cloud.@@.accessKey";
private String SECRET_KEY = "solon.cloud.@@.secretKey";
//配置服务相关
private String CONFIG_ENABLE = "solon.cloud.@@.config.enable";
private String CONFIG_SERVER = "solon.cloud.@@.config.server";
private String CONFIG_LOAD = "solon.cloud.@@.config.load";
private String CONFIG_REFRESH_INTERVAL = "solon.cloud.@@.config.refreshInterval";
//发现服务相关
private String DISCOVERY_ENABLE = "solon.cloud.@@.discovery.enable";
private String DISCOVERY_SERVER = "solon.cloud.@@.discovery.server";
private String DISCOVERY_HEALTH_CHECK_INTERVAL = "solon.cloud.@@.discovery.healthCheckInterval";
private String DISCOVERY_HEALTH_DETECTOR = "solon.cloud.@@.discovery.healthDetector";
private String DISCOVERY_REFRESH_INTERVAL = "solon.cloud.@@.discovery.refreshInterval";
//事件总线服务相关
private String EVENT_ENABLE = "solon.cloud.@@.event.enable";
private String EVENT_SERVER = "solon.cloud.@@.event.server";
private String EVENT_PREFETCH_COUNT = "solon.cloud.@@.event.prefetchCount";
private String EVENT_PUBLISH_TIMEOUT = "solon.cloud.@@.event.publishTimeout";
private String EVENT_CHANNEL = "solon.cloud.@@.event.channel"; //通道
private String EVENT_BROKER = "solon.cloud.@@.event.broker"; //broker
private String EVENT_GROUP = "solon.cloud.@@.event.group"; //虚拟分组
private String EVENT_CONSUMER = "solon.cloud.@@.event.consumer"; //配置组
private String EVENT_PRODUCER = "solon.cloud.@@.event.producer"; //配置组
private String EVENT_CLIENT = "solon.cloud.@@.event.client"; //配置组
private String EVENT_USERNAME = "solon.cloud.@@.event.username";
private String EVENT_PASSWORD = "solon.cloud.@@.event.password";
private String EVENT_ACCESS_KEY = "solon.cloud.@@.event.accessKey";
private String EVENT_SECRET_KEY = "solon.cloud.@@.event.secretKey";
//锁服务相关
private String LOCK_ENABLE = "solon.cloud.@@.lock.enable";
private String LOCK_SERVER = "solon.cloud.@@.lock.server";
//日志总线服务相关
private String LOG_ENABLE = "solon.cloud.@@.log.enable";
private String LOG_SERVER = "solon.cloud.@@.log.server";
private String LOG_DEFAULT = "solon.cloud.@@.log.default";
//链路跟踪服务相关
private String TRACE_ENABLE = "solon.cloud.@@.trace.enable";
private String TRACE_EXCLUDE = "solon.cloud.@@.trace.exclude";
//度量服务相关
private String METRIC_ENABLE = "solon.cloud.@@.metric.enable";
//文件服务相关
private String FILE_ENABLE = "solon.cloud.@@.file.enable";
private String FILE_BUCKET = "solon.cloud.@@.file.bucket";
private String FILE_ENDPOINT = "solon.cloud.@@.file.endpoint";
private String FILE_REGION_ID = "solon.cloud.@@.file.regionId";
private String FILE_USERNAME = "solon.cloud.@@.file.username";
private String FILE_PASSWORD = "solon.cloud.@@.file.password";
private String FILE_ACCESS_KEY = "solon.cloud.@@.file.accessKey";
private String FILE_SECRET_KEY = "solon.cloud.@@.file.secretKey";
//国际化服务相关
private String I18N_ENABLE = "solon.cloud.@@.i18n.enable";
private String I18N_DEFAULT = "solon.cloud.@@.i18n.default";
//ID服务相关
private String ID_ENABLE = "solon.cloud.@@.id.enable";
private String ID_START = "solon.cloud.@@.id.start";
//名单服务相关
private String LIST_ENABLE = "solon.cloud.@@.list.enable";
//任务服务相关
private String JOB_ENABLE = "solon.cloud.@@.job.enable";
private String JOB_SERVER = "solon.cloud.@@.job.server";