Package com.alibaba.wasp.fserver

Examples of com.alibaba.wasp.fserver.FServer


  }

  public List<EntityGroup> getEntityGroups(byte[] tableName) {
    List<EntityGroup> ret = new ArrayList<EntityGroup>();
    for (JVMClusterUtil.FServerThread rst : getFServerThreads()) {
      FServer fs = rst.getFServer();
      Collection<EntityGroup> egs = fs.getOnlineEntityGroupsLocalContext();
      for (EntityGroup entityGroup : egs) {
        TestCase.assertNotNull(entityGroup);
        TestCase.assertNotNull(entityGroup.getTableDesc());
        TestCase.assertNotNull(entityGroup.getTableDesc().getTableName());
        TestCase.assertNotNull(tableName);
View Full Code Here


   */
  public int getServerWith(byte[] entityGroupName) {
    int index = -1;
    int count = 0;
    for (JVMClusterUtil.FServerThread rst : getFServerThreads()) {
      FServer hrs = rst.getFServer();
      EntityGroup entityGroup = hrs.getOnlineEntityGroup(entityGroupName);
      if (entityGroup != null) {
        index = count;
        break;
      }
      count++;
View Full Code Here

    Logger.getLogger(ZooKeeper.class).setLevel(Level.DEBUG);
    Logger.getLogger(PrepRequestProcessor.class).setLevel(Level.DEBUG);
    Logger.getLogger(NIOServerCnxn.class).setLevel(Level.DEBUG);
    TEST_UTIL.startMiniCluster(1);

    engine = new ExecutionEngine(new FServer(TEST_UTIL.getConfiguration()));

    table = TEST_UTIL.createTable(Bytes.toBytes(TABLE_NAME));
    TEST_UTIL.waitTableEnabled(TABLE, 180000);
    TEST_UTIL.getWaspAdmin().disableTable(TABLE);
    client = new FClient(TEST_UTIL.getConfiguration());
View Full Code Here

TOP

Related Classes of com.alibaba.wasp.fserver.FServer

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.