use of org.apache.flink.shaded.curator.org.apache.curator.framework.recipes.leader.LeaderLatch in project Taier by DTStack.
the class SessionClientFactory method getLeaderLatch.
public LeaderLatch getLeaderLatch() {
String lockPath = String.format("%s/%s/%s", SESSION_CHECK_LEADER_ELECTION, this.sessionAppNameSuffix, flinkConfig.getFlinkSessionName());
LOG.info("flink monitor election path is {}", lockPath);
LeaderLatch ll = new LeaderLatch(this.zkClient, lockPath);
return ll;
}
Aggregations