public synchronized boolean isDeregisteredWithZooKeeper() {
    return deregisteredWithZooKeeper;
  }
Adds a server instance to ZooKeeper as a znode.

@throws Exception
standalone-metastore/metastore-common/src/main/java/org/apache/hadoop/hive/common/ZooKeeperHiveHelper.java