コード例 #1
0
 /**
  * Entry point to seed the local {@link AuthenticationKey} cache from ZooKeeper and set the first
  * watcher for future updates in ZooKeeper.
  */
 public void updateAuthKeys() throws KeeperException, InterruptedException {
   // Might cause two watchers on baseNode, but only at startup for each tserver.
   if (zk.exists(baseNode, this)) {
     log.info(
         "Added {} existing AuthenticationKeys to local cache from ZooKeeper",
         updateAuthKeys(baseNode));
   }
 }