|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.hadoop.hbase.zookeeper.ZKTableReadOnly
public class ZKTableReadOnly
Non-instantiable class that provides helper functions for clients other than AssignmentManager for reading the state of a table in ZK.
Does not cache state like ZKTable, actually reads from ZK each call.
| Method Summary | |
|---|---|
static Set<TableName> |
getDisabledOrDisablingTables(ZooKeeperWatcher zkw)
Gets a list of all the tables set as disabled in zookeeper. |
static Set<TableName> |
getDisabledTables(ZooKeeperWatcher zkw)
Gets a list of all the tables set as disabled in zookeeper. |
static boolean |
isDisabledTable(ZooKeeperWatcher zkw,
TableName tableName)
Go to zookeeper and see if state of table is ZooKeeperProtos.Table.State#DISABLED. |
static boolean |
isDisablingOrDisabledTable(ZooKeeperWatcher zkw,
TableName tableName)
Go to zookeeper and see if state of table is ZooKeeperProtos.Table.State#DISABLING
of ZooKeeperProtos.Table.State#DISABLED. |
static boolean |
isEnabledTable(ZooKeeperWatcher zkw,
TableName tableName)
Go to zookeeper and see if state of table is ZooKeeperProtos.Table.State#ENABLED. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static boolean isDisabledTable(ZooKeeperWatcher zkw,
TableName tableName)
throws org.apache.zookeeper.KeeperException
ZooKeeperProtos.Table.State#DISABLED.
This method does not use cache.
This method is for clients other than AssignmentManager
zkw - tableName -
org.apache.zookeeper.KeeperException
public static boolean isEnabledTable(ZooKeeperWatcher zkw,
TableName tableName)
throws org.apache.zookeeper.KeeperException
ZooKeeperProtos.Table.State#ENABLED.
This method does not use cache.
This method is for clients other than AssignmentManager
zkw - tableName -
org.apache.zookeeper.KeeperException
public static boolean isDisablingOrDisabledTable(ZooKeeperWatcher zkw,
TableName tableName)
throws org.apache.zookeeper.KeeperException
ZooKeeperProtos.Table.State#DISABLING
of ZooKeeperProtos.Table.State#DISABLED.
This method does not use cache.
This method is for clients other than AssignmentManager.
zkw - tableName -
org.apache.zookeeper.KeeperException
public static Set<TableName> getDisabledTables(ZooKeeperWatcher zkw)
throws org.apache.zookeeper.KeeperException
org.apache.zookeeper.KeeperException
public static Set<TableName> getDisabledOrDisablingTables(ZooKeeperWatcher zkw)
throws org.apache.zookeeper.KeeperException
org.apache.zookeeper.KeeperException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||