Examples of TableState


Examples of cli_fmw.utils.table_config_states.TableState

        jTable.setModel(new TableModelCertificateList(certificateList.getChildren().toArray(new CertificateLocal[certificateList.getChildCount()])));
        jTable.getSelectionModel().setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
    }

    private void resizeColumn() {
    TableState          state = new TableState();
    state.setPreferredWidth(TableModelCertificateList.COL_DATE,      10);
    state.setPreferredWidth(TableModelCertificateList.COL_COLLABORATOR,  20);
    state.setPreferredWidth(TableModelCertificateList.COL_TYPE,      20);
      StateSaver.setDefaultState(this, jTable, state);
    }
View Full Code Here

Examples of mage.constants.TableState

        });
    }

    @Override
    public boolean leaveTable(final String sessionId, final UUID roomId, final UUID tableId) throws MageException {
        TableState tableState = TableManager.getInstance().getController(tableId).getTableState();
        if (!tableState.equals(TableState.WAITING) && !tableState.equals(TableState.READY_TO_START)) {
            // table was already started, so player can't leave anymore now
            return false;
        }
        execute("leaveTable", sessionId, new Action() {
            @Override
View Full Code Here

Examples of net.sourceforge.squirrel_sql.fw.datasetviewer.TableState

      return _columnDefinitions;
   }

   public void setParentScaleTable(DataScaleTable parent)
   {
      TableState st = new TableState(parent);
      st.apply(this);

      _parent = parent;

      _parent.setKidScaleTable(this);
   }
View Full Code Here

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

              String parts[] = delete.split("/");
              if (parts.length > 2) {
                String tableId = parts[1];
                String tabletDir = parts[2];
                TableManager.getInstance().updateTableStateCache(tableId);
                TableState tableState = TableManager.getInstance().getTableState(tableId);
                if (tableState != null && tableState != TableState.DELETING) {
                  // clone directories don't always exist
                  if (!tabletDir.startsWith("c-"))
                    log.warn("File doesn't exist: " + p);
                }
View Full Code Here

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

   
    try {
      ZooReaderWriter.getRetryingInstance().mutate(statePath, (byte[]) newState.name().getBytes(Constants.UTF8), ZooUtil.PUBLIC, new Mutator() {
        @Override
        public byte[] mutate(byte[] oldData) throws Exception {
          TableState oldState = TableState.UNKNOWN;
          if (oldData != null)
            oldState = TableState.valueOf(new String(oldData, Constants.UTF8));
          boolean transition = true;
          // +--------+
          // v |
View Full Code Here

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

    }
  }
 
  public TableState updateTableStateCache(String tableId) {
    synchronized (tableStateCache) {
      TableState tState = TableState.UNKNOWN;
      byte[] data = zooStateCache.get(ZooUtil.getRoot(instance) + Constants.ZTABLES + "/" + tableId + Constants.ZTABLE_STATE);
      if (data != null) {
        String sState = new String(data, Constants.UTF8);
        try {
          tState = TableState.valueOf(sState);
View Full Code Here

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

          }
          break;
        case NodeCreated:
        case NodeDataChanged:
          // state transition
          TableState tState = updateTableStateCache(tableId);
          log.debug("State transition to " + tState + " @ " + event);
          synchronized (observers) {
            for (TableObserver to : observers)
              to.stateChanged(tableId, tState);
          }
View Full Code Here

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

        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();
            }
          }
        }
        break;
View Full Code Here

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

    // 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

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

      return result;
    }
    TableManager manager = TableManager.getInstance();
   
    for (String tableId : Tables.getIdToNameMap(instance).keySet()) {
      TableState state = manager.getTableState(tableId);
      if (state != null) {
        if (state == TableState.ONLINE)
          result.add(tableId);
      }
    }
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.