/** * Gets a list of all the tables set as disabling in zookeeper. * * @return Set of disabling tables, empty Set if none * @throws org.apache.zookeeper.KeeperException */ public static Set<String> getDisablingTables(ZooKeeperWatcher zkw) throws KeeperException { return getAllTables(zkw, ZooKeeperProtos.Table.State.DISABLING); }
/** * Gets a list of all the tables set as enabling in zookeeper. * * @return Set of enabling tables, empty Set if none * @throws org.apache.zookeeper.KeeperException */ public static Set<String> getEnablingTables(ZooKeeperWatcher zkw) throws KeeperException { return getAllTables(zkw, ZooKeeperProtos.Table.State.ENABLING); }
/** * Gets a list of all the tables set as disabled in zookeeper. * * @return Set of disabled tables, empty Set if none * @throws org.apache.zookeeper.KeeperException */ public static Set<String> getDisabledTables(ZooKeeperWatcher zkw) throws KeeperException { return getAllTables(zkw, ZooKeeperProtos.Table.State.DISABLED); }
/** * Gets a list of all the tables set as disabled in zookeeper. * * @return Set of disabled tables, empty Set if none * @throws org.apache.zookeeper.KeeperException */ public static Set<String> getDisabledOrDisablingTables(ZooKeeperWatcher zkw) throws KeeperException { return getAllTables(zkw, ZooKeeperProtos.Table.State.DISABLED, ZooKeeperProtos.Table.State.DISABLING); }