Examples of TableState


Examples of org.apache.hadoop.hbase.zookeeper.ZKTable.TableState

   * @throws KeeperException
   */
  public static boolean isDisabledTable(final ZooKeeperWatcher zkw,
      final String tableName)
  throws KeeperException {
    TableState state = getTableState(zkw, tableName);
    return isTableState(TableState.DISABLED, state);
  }
View Full Code Here

Examples of org.apache.hadoop.hbase.zookeeper.ZKTable.TableState

   * @return True if table is enabled.
   * @throws KeeperException
   */
  public static boolean isEnabledTable(final ZooKeeperWatcher zkw,
      final String tableName) throws KeeperException {
    TableState state = getTableState(zkw, tableName);
    // If a table is ENABLED then we are removing table state znode in 0.92
    // but in 0.94 we keep it in ENABLED state.
    return state == null || state == TableState.ENABLED;
  }
View Full Code Here

Examples of org.apache.hadoop.hbase.zookeeper.ZKTable.TableState

   * @return True if table is enabled.
   * @throws KeeperException
   */
  public static boolean isDisablingOrDisabledTable(final ZooKeeperWatcher zkw,
      final String tableName) throws KeeperException {
    TableState state = getTableState(zkw, tableName);
    return isTableState(TableState.DISABLING, state) ||
      isTableState(TableState.DISABLED, state);
  }
View Full Code Here

Examples of org.apache.hadoop.hbase.zookeeper.ZKTable.TableState

  throws KeeperException {
    Set<String> disabledTables = new HashSet<String>();
    List<String> children =
      ZKUtil.listChildrenNoWatch(zkw, zkw.clientTableZNode);
    for (String child: children) {
      TableState state = getTableState(zkw, child);
      if (state == TableState.DISABLED) disabledTables.add(child);
    }
    return disabledTables;
  }
View Full Code Here

Examples of org.apache.hadoop.hbase.zookeeper.ZKTable.TableState

  throws KeeperException {
    Set<String> disabledTables = new HashSet<String>();
    List<String> children =
      ZKUtil.listChildrenNoWatch(zkw, zkw.clientTableZNode);
    for (String child: children) {
      TableState state = getTableState(zkw, child);
      if (state == TableState.DISABLED || state == TableState.DISABLING)
        disabledTables.add(child);
    }
    return disabledTables;
  }
View Full Code Here

Examples of org.apache.hadoop.hbase.zookeeper.ZKTable.TableState

   * @throws KeeperException
   */
  public static boolean isDisabledTable(final ZooKeeperWatcher zkw,
      final String tableName)
  throws KeeperException {
    TableState state = getTableState(zkw, tableName);
    return isTableState(TableState.DISABLED, state);
  }
View Full Code Here

Examples of org.apache.hadoop.hbase.zookeeper.ZKTable.TableState

   * @return True if table is enabled.
   * @throws KeeperException
   */
  public static boolean isEnabledTable(final ZooKeeperWatcher zkw,
      final String tableName) throws KeeperException {
    TableState state = getTableState(zkw, tableName);
    // If a table is ENABLED then we are removing table state znode in 0.92
    // but in 0.94 we keep it in ENABLED state.
    return state == null || state == TableState.ENABLED;
  }
View Full Code Here

Examples of org.apache.hadoop.hbase.zookeeper.ZKTable.TableState

   * @return True if table is enabled.
   * @throws KeeperException
   */
  public static boolean isDisablingOrDisabledTable(final ZooKeeperWatcher zkw,
      final String tableName) throws KeeperException {
    TableState state = getTableState(zkw, tableName);
    return isTableState(TableState.DISABLING, state) ||
      isTableState(TableState.DISABLED, state);
  }
View Full Code Here

Examples of org.apache.hadoop.hbase.zookeeper.ZKTable.TableState

  throws KeeperException {
    Set<String> disabledTables = new HashSet<String>();
    List<String> children =
      ZKUtil.listChildrenNoWatch(zkw, zkw.clientTableZNode);
    for (String child: children) {
      TableState state = getTableState(zkw, child);
      if (state == TableState.DISABLED) disabledTables.add(child);
    }
    return disabledTables;
  }
View Full Code Here

Examples of org.apache.hadoop.hbase.zookeeper.ZKTable.TableState

  public static Map<TableState, Set<String>> getDisabledOrDisablingTables(ZooKeeperWatcher zkw)
      throws KeeperException {
    Map<TableState, Set<String>> disabledTables = new HashMap<TableState, Set<String>>();
    List<String> children = ZKUtil.listChildrenNoWatch(zkw, zkw.clientTableZNode);
    for (String child : children) {
      TableState state = getTableState(zkw, child);
      if (state == TableState.DISABLED) {
        Set<String> tables = disabledTables.get(state);
        if (tables == null) {
          tables = new HashSet<String>();
          disabledTables.put(TableState.DISABLED, tables);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.