Package com.alibaba.wasp.zookeeper

Examples of com.alibaba.wasp.zookeeper.ZKTable


            "wasp.master.assignment.timeoutmonitor.timeout", 600000));
    this.timerUpdater = new TimerUpdater(conf.getInt(
        "wasp.master.assignment.timerupdater.period", 10000), server);
    Threads.setDaemonThreadRunning(timerUpdater.getThread(),
        server.getServerName() + ".timerUpdater");
    this.zkTable = new ZKTable(this.watcher);
    this.maximumAttempts = this.server.getConfiguration().getInt(
        "wasp.assignment.maximum.attempts", 10);
    this.balancer = balancer;
    int maxThreads = conf.getInt("wasp.assignment.threads.max", 30);
    this.threadPoolExecutorService = Threads.getBoundedCachedThreadPool(
View Full Code Here


  @Test(timeout = 36000)
  public void testEnableDisableAddColumnDeleteColumn() throws Exception {
    ZooKeeperWatcher zkw = WaspTestingUtility.getZooKeeperWatcher(TEST_UTIL);
    byte[] tableName = Bytes.toBytes("testMasterAdmin");
    TEST_UTIL.createTable(tableName);
    ZKTable zkTable = new ZKTable(zkw);
    while (!zkTable.isEnabledTable("testMasterAdmin")) {
      Thread.sleep(10);
    }
    admin.disableTable(tableName);
    admin.addColumn(tableName, new Field(FieldKeyWord.REQUIRED, "cf", "col2",
        DataType.STRING, null));
View Full Code Here

              EntityGroupState.State.OPEN, System.currentTimeMillis(), server
                  .getServerName()));
      // create a node with OPENED state
      zkw = WaspTestingUtility.createAndForceNodeToOpenedState(TEST_UTIL,
          entityGroup, server.getServerName());
      when(am.getZKTable()).thenReturn(new ZKTable(zkw));
      Stat stat = new Stat();
      String nodeName = ZKAssign.getNodeName(zkw, entityGroup
          .getEntityGroupInfo().getEncodedName());
      ZKUtil.getDataAndWatch(zkw, nodeName, stat);
View Full Code Here

TOP

Related Classes of com.alibaba.wasp.zookeeper.ZKTable

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.