Browse Source

initStateLister名字改为initStateListener (#4793)

Co-authored-by: v_taoouyang <v_taoouyang@tencent.com>
yimaixinchen 4 years ago committed by GitHub
parent
commit
8e25a90f57
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      dolphinscheduler-service/src/main/java/org/apache/dolphinscheduler/service/zk/ZookeeperOperator.java

4
dolphinscheduler-service/src/main/java/org/apache/dolphinscheduler/service/zk/ZookeeperOperator.java

@ -55,7 +55,7 @@ public class ZookeeperOperator implements InitializingBean {
@Override
public void afterPropertiesSet() throws Exception {
this.zkClient = buildClient();
initStateLister();
initStateListener();
treeCacheStart();
}
@ -66,7 +66,7 @@ public class ZookeeperOperator implements InitializingBean {
protected void treeCacheStart(){}
public void initStateLister() {
public void initStateListener() {
checkNotNull(zkClient);
zkClient.getConnectionStateListenable().addListener((client, newState) -> {

Loading…
Cancel
Save