Package org.apache.accumulo.server.master.state.tables

Examples of org.apache.accumulo.server.master.state.tables.TableState


              }
              String parts[] = file.split("/");
              if (parts.length > 1) {
                String tableId = parts[1];
                TableManager.getInstance().updateTableStateCache(tableId);
                TableState tableState = TableManager.getInstance().getTableState(tableId);
                if (tableState != null && tableState != TableState.DELETING)
                  log.warn("File doesn't exist: " + p);
              } else {
                log.warn("Very strange path name: " + file);
              }
View Full Code Here


   
    public void run() {
      while (stillMaster()) {
        try {
          for (String tableId : Tables.getIdToNameMap(instance).keySet()) {
            TableState state = TableManager.getInstance().getTableState(tableId);
            if (state == null || state.equals(TableState.DELETING)) {
              waitForTabletsToBeOffline(new Text(tableId));
              cleanUp(tableId);
            }
          }
        } catch (Exception ex) {
View Full Code Here

      for (TabletGroupWatcher watcher : watchers) {
        TableManager manager = TableManager.getInstance();
        for (Entry<Text,TableCounts> entry : watcher.getStats().entrySet()) {
          Text tableId = entry.getKey();
          TableCounts counts = entry.getValue();
          TableState tableState = manager.getTableState(tableId.toString());
          if (tableState != null && tableState.equals(TableState.ONLINE)) {
            result += counts.unassigned() + counts.assignedToDeadServers();
          }
        }
      }
    } else if (getMasterState().equals(MasterState.SAFE_MODE)) {
View Full Code Here

    // unreachable
    return TabletGoalState.HOSTED;
  }
 
  TabletGoalState getTableGoalState(KeyExtent extent) {
    TableState tableState = TableManager.getInstance().getTableState(extent.getTableId().toString());
    if (tableState == null)
      return TabletGoalState.DELETED;
    switch (tableState) {
      case DELETING:
        return TabletGoalState.DELETED;
View Full Code Here

      return result;
    }
    TableManager manager = TableManager.getInstance();
   
    for (String tableId : Tables.getIdToNameMap(instance).keySet()) {
      TableState state = manager.getTableState(tableId);
      if (state != null) {
        switch (state) {
          case LOADING:
          case ONLINE:
            result.add(tableId);
View Full Code Here

              }
              String parts[] = file.split("/");
              if (parts.length > 1) {
                String tableId = parts[1];
                TableManager.getInstance().updateTableStateCache(tableId);
                TableState tableState = TableManager.getInstance().getTableState(tableId);
                if (tableState != null && tableState != TableState.DELETING)
                  log.warn("File doesn't exist: " + p);
              } else {
                log.warn("Very strange path name: " + file);
              }
View Full Code Here

    return "center";
  }
 
  @Override
  public String format(Object obj) {
    TableState state = obj == null ? TableState.UNKNOWN : (TableState) obj;
    String style = null;
    switch (state) {
      case ONLINE:
      case DISABLED:
        break;
View Full Code Here

      for (TabletGroupWatcher watcher : watchers) {
        TableManager manager = TableManager.getInstance();
        for (Entry<Text,TableCounts> entry : watcher.getStats().entrySet()) {
          Text tableId = entry.getKey();
          TableCounts counts = entry.getValue();
          TableState tableState = manager.getTableState(tableId.toString());
          if (tableState != null && tableState.equals(TableState.ONLINE)) {
            result += counts.unassigned() + counts.assignedToDeadServers() + counts.assigned();
          }
        }
      }
    } else if (getMasterState().equals(MasterState.SAFE_MODE)) {
View Full Code Here

    // unreachable
    return TabletGoalState.HOSTED;
  }
 
  TabletGoalState getTableGoalState(KeyExtent extent) {
    TableState tableState = TableManager.getInstance().getTableState(extent.getTableId().toString());
    if (tableState == null)
      return TabletGoalState.DELETED;
    switch (tableState) {
      case DELETING:
        return TabletGoalState.DELETED;
View Full Code Here

      return result;
    }
    TableManager manager = TableManager.getInstance();
   
    for (String tableId : Tables.getIdToNameMap(instance).keySet()) {
      TableState state = manager.getTableState(tableId);
      if (state != null) {
        switch (state) {
          case LOADING:
          case ONLINE:
            result.add(tableId);
View Full Code Here

TOP

Related Classes of org.apache.accumulo.server.master.state.tables.TableState

Copyright © 2018 www.massapicom. 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.