private boolean testTableOnlineState(byte[] tableName, boolean online) throws IOException { getZooKeeperWatcher(); String tableNameStr = Bytes.toString(tableName); try { if (online) { return ZKTableReadOnly.isEnabledTable(this.zooKeeper, tableNameStr); } return ZKTableReadOnly.isDisabledTable(this.zooKeeper, tableNameStr); } catch (KeeperException e) { throw new IOException("Enable/Disable failed", e); } }