mirror of
https://gitee.com/dromara/liteFlow.git
synced 2026-06-13 11:14:38 +08:00
feature #I7YYLE 添加组件降级启动配置
This commit is contained in:
@@ -74,9 +74,6 @@ public class LiteflowProperty {
|
||||
// 是否打印执行过程中的日志
|
||||
private boolean printExecutionLog;
|
||||
|
||||
// 替补组件的class路径
|
||||
private String substituteCmpClass;
|
||||
|
||||
// 规则文件/脚本文件变更监听
|
||||
private Boolean enableMonitorFile;
|
||||
|
||||
@@ -87,6 +84,9 @@ public class LiteflowProperty {
|
||||
|
||||
//使用默认并行循环线程池时,最大队列数
|
||||
private Integer parallelQueueLimit;
|
||||
|
||||
// 是否启用组件降级
|
||||
private Boolean fallbackCmpEnable;
|
||||
|
||||
public Boolean getEnableMonitorFile() {
|
||||
return enableMonitorFile;
|
||||
@@ -226,14 +226,6 @@ public class LiteflowProperty {
|
||||
this.requestIdGeneratorClass = requestIdGeneratorClass;
|
||||
}
|
||||
|
||||
public String getSubstituteCmpClass() {
|
||||
return substituteCmpClass;
|
||||
}
|
||||
|
||||
public void setSubstituteCmpClass(String substituteCmpClass) {
|
||||
this.substituteCmpClass = substituteCmpClass;
|
||||
}
|
||||
|
||||
public String getRuleSourceExtData() {
|
||||
return ruleSourceExtData;
|
||||
}
|
||||
@@ -289,4 +281,12 @@ public class LiteflowProperty {
|
||||
public void setParallelQueueLimit(Integer parallelQueueLimit) {
|
||||
this.parallelQueueLimit = parallelQueueLimit;
|
||||
}
|
||||
|
||||
public Boolean isFallbackCmpEnable() {
|
||||
return fallbackCmpEnable;
|
||||
}
|
||||
|
||||
public void setFallbackCmpEnable(Boolean fallbackCmpEnable) {
|
||||
this.fallbackCmpEnable = fallbackCmpEnable;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -46,11 +46,11 @@ public class LiteflowPropertyAutoConfiguration {
|
||||
liteflowConfig.setMainExecutorWorks(property.getMainExecutorWorks());
|
||||
liteflowConfig.setMainExecutorClass(property.getMainExecutorClass());
|
||||
liteflowConfig.setPrintExecutionLog(property.isPrintExecutionLog());
|
||||
liteflowConfig.setSubstituteCmpClass(property.getSubstituteCmpClass());
|
||||
liteflowConfig.setEnableMonitorFile(property.getEnableMonitorFile());
|
||||
liteflowConfig.setParallelMaxWorkers(property.getParallelMaxWorkers());
|
||||
liteflowConfig.setParallelQueueLimit(property.getParallelQueueLimit());
|
||||
liteflowConfig.setParallelLoopExecutorClass(property.getParallelLoopExecutorClass());
|
||||
liteflowConfig.setFallbackCmpEnable(property.isFallbackCmpEnable());
|
||||
return liteflowConfig;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user