feature #IC2F4F 监听新增文件

This commit is contained in:
DaleLee
2025-04-20 19:55:16 +08:00
parent 07e90c3725
commit c3e865cc8e

View File

@@ -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) {