public boolean hasId() { return getId() != null; }
public ClusterId getId() { try { if (id == null) { id = readClusterIdZNode(watcher); } } catch (KeeperException ke) { abortable.abort("Unexpected exception from ZooKeeper reading cluster ID", ke); } return id; }
this.clusterId = ZKClusterId.readClusterIdZNode(this.zooKeeper); if (this.clusterId == null) { this.clusterId = new ClusterId(); ZKClusterId.setClusterId(this.zooKeeper, this.clusterId);
String clusterId = ZKClusterId.readClusterIdZNode(this.zooKeeper) .toString(); if (clusterId == null) {