Examples of EnableTableHandler


Examples of com.alibaba.wasp.master.handler.EnableTableHandler

        // Recover by calling EnableTableHandler
        LOG.info("The table " + tableName
            + " is in ENABLING state.  Hence recovering by moving the table"
            + " to ENABLED state.");
        // enableTable in sync way during master startup,
        new EnableTableHandler(this.server, (FMasterServices) this.server,this, tableName.getBytes(), true)
            .process();
      }
    }
  }
View Full Code Here

Examples of com.alibaba.wasp.master.handler.EnableTableHandler

  public EnableTableResponse enableTable(RpcController controller,
      EnableTableRequest request) throws ServiceException {
    byte[] tableName = request.getTableName().toByteArray();
    try {
      checkInitialized();
      this.executorService.submit(new EnableTableHandler(this,this,
          this.assignmentManager, tableName, false));
    } catch (IOException ioe) {
      throw new ServiceException(ioe);
    }
    return EnableTableResponse.newBuilder().build();
View Full Code Here

Examples of org.apache.hadoop.hbase.master.handler.EnableTableHandler

  public void enableTable(final byte [] tableName) throws IOException {
    checkInitialized();
    if (cpHost != null) {
      cpHost.preEnableTable(tableName);
    }
    this.executorService.submit(new EnableTableHandler(this, tableName,
      catalogTracker, assignmentManager, false));

    if (cpHost != null) {
      cpHost.postEnableTable(tableName);
    }
View Full Code Here

Examples of org.apache.hadoop.hbase.master.handler.EnableTableHandler

        LOG.info("The table " + tableName
            + " is in ENABLING state.  Hence recovering by moving the table"
            + " to ENABLED state.");
        // enableTable in sync way during master startup,
        // no need to invoke coprocessor
        new EnableTableHandler(this.master, tableName.getBytes(),
            catalogTracker, this, true).process();
      }
    }
  }
View Full Code Here

Examples of org.apache.hadoop.hbase.master.handler.EnableTableHandler

    AssignmentManagerWithExtrasForTesting am = setUpMockedAssignmentManager(server,
        this.serverManager);
    try {
      // set table in enabling state.
      am.getZKTable().setEnablingTable(REGIONINFO.getTable());
      new EnableTableHandler(server, REGIONINFO.getTable(),
          am.getCatalogTracker(), am, new NullTableLockManager(), true).prepare()
          .process();
      assertEquals("Number of assignments should be 1.", 1, assignmentCount);
      assertTrue("Table should be enabled.",
          am.getZKTable().isEnabledTable(REGIONINFO.getTable()));
View Full Code Here

Examples of org.apache.hadoop.hbase.master.handler.EnableTableHandler

        LOG.info("The table " + tableName
            + " is in ENABLING state.  Hence recovering by moving the table"
            + " to ENABLED state.");
        // enableTable in sync way during master startup,
        // no need to invoke coprocessor
        new EnableTableHandler(this.master, tableName.getBytes(),
            catalogTracker, this, true).process();
      }
    }
  }
View Full Code Here

Examples of org.apache.hadoop.hbase.master.handler.EnableTableHandler

  public void enableTable(final byte [] tableName) throws IOException {
    checkInitialized();
    if (cpHost != null) {
      cpHost.preEnableTable(tableName);
    }
    this.executorService.submit(new EnableTableHandler(this, tableName,
      catalogTracker, assignmentManager, false));

    if (cpHost != null) {
      cpHost.postEnableTable(tableName);
    }
View Full Code Here

Examples of org.apache.hadoop.hbase.master.handler.EnableTableHandler

    checkInitialized();
    if (cpHost != null) {
      cpHost.preEnableTable(tableName);
    }
    LOG.info(getClientIdAuditPrefix() + " enable " + tableName);
    this.executorService.submit(new EnableTableHandler(this, tableName,
      catalogTracker, assignmentManager, tableLockManager, false).prepare());
    if (cpHost != null) {
      cpHost.postEnableTable(tableName);
   }
  }
View Full Code Here

Examples of org.apache.hadoop.hbase.master.handler.EnableTableHandler

        LOG.info("The table " + tableName
            + " is in ENABLING state.  Hence recovering by moving the table"
            + " to ENABLED state.");
        // enableTable in sync way during master startup,
        // no need to invoke coprocessor
        new EnableTableHandler(this.server, tableName,
            catalogTracker, this, tableLockManager, true).prepare().process();
      }
    }
  }
View Full Code Here

Examples of org.apache.hadoop.hbase.master.handler.EnableTableHandler

  public void enableTable(final byte [] tableName) throws IOException {
    checkInitialized();
    if (cpHost != null) {
      cpHost.preEnableTable(tableName);
    }
    this.executorService.submit(new EnableTableHandler(this, tableName,
      catalogTracker, assignmentManager, false));

    if (cpHost != null) {
      cpHost.postEnableTable(tableName);
    }
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.