mirror of
https://gitee.com/dromara/liteFlow.git
synced 2026-05-14 04:02:09 +08:00
feature #IC2F4F 监听新增文件
This commit is contained in:
@@ -72,7 +72,13 @@ public class MonitorFile {
|
||||
this.reloadRule();
|
||||
}
|
||||
|
||||
private void reloadRule() {
|
||||
@Override
|
||||
public void onFileCreate(File file) {
|
||||
LOG.info("file create,filePath={}", file.getAbsolutePath());
|
||||
this.reloadRule();
|
||||
}
|
||||
|
||||
private void reloadRule() {
|
||||
try {
|
||||
FlowExecutorHolder.loadInstance().reloadRule();
|
||||
} catch (Exception e) {
|
||||
|
||||
Reference in New Issue
Block a user