mirror of
https://gitee.com/dromara/liteFlow.git
synced 2026-05-14 20:22:07 +08:00
enhancement 支持etcd分离chain以及脚本的存储结构
This commit is contained in:
@@ -141,19 +141,17 @@ public class EtcdParserHelper {
|
||||
*/
|
||||
public void listen(Consumer<String> parseConsumer) {
|
||||
this.client.watchChildChange(this.etcdParserVO.getChainPath(), (updatePath, updateValue) -> {
|
||||
LOG.info("update path={} value={},starting reload flow config...", updatePath, updateValue);
|
||||
String content = getContent();
|
||||
LOG.info("update path={} value={},content={}", content);
|
||||
// parseConsumer.accept(content);
|
||||
LOG.info("starting reload flow config... update path={} value={},", updatePath, updateValue);
|
||||
parseConsumer.accept(getContent());
|
||||
}, (deletePath) -> {
|
||||
LOG.info("delete path={},starting reload flow config...", deletePath);
|
||||
LOG.info("starting reload flow config... delete path={}", deletePath);
|
||||
parseConsumer.accept(getContent());
|
||||
});
|
||||
this.client.watchChildChange(this.etcdParserVO.getScriptPath(), (updatePath, updateValue) -> {
|
||||
LOG.info("update path={} value={},starting reload flow config...", updatePath, updateValue);
|
||||
LOG.info("starting reload flow config... update path={} value={}", updatePath, updateValue);
|
||||
parseConsumer.accept(getContent());
|
||||
}, (deletePath) -> {
|
||||
LOG.info("delete path={},starting reload flow config....", deletePath);
|
||||
LOG.info("starting reload flow config... delete path={}", deletePath);
|
||||
parseConsumer.accept(getContent());
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user