Browse Source

initStateLister rename to initStateListener (#4795)

Co-authored-by: v_taoouyang <v_taoouyang@tencent.com>
pull/3/MERGE
yimaixinchen 4 years ago committed by GitHub
parent
commit
938621ab34
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

@ -59,7 +59,7 @@ public class ZookeeperOperator implements InitializingBean {
@Override
public void afterPropertiesSet() throws Exception {
this.zkClient = buildClient();
initStateLister();
initStateListener();
treeCacheStart();
}
@ -74,7 +74,7 @@ public class ZookeeperOperator implements InitializingBean {
// Used by sub class
}
public void initStateLister() {
public void initStateListener() {
checkNotNull(zkClient);
zkClient.getConnectionStateListenable().addListener((client, newState) -> {

Loading…
Cancel
Save