Package com.alibaba.wasp

Examples of com.alibaba.wasp.ClusterStatus


  {
    // 35, 1
   
Collection<ServerName> backupMasters = null;
if (master.isActiveMaster()) {
    ClusterStatus status = master.getClusterStatus();
    backupMasters = status.getBackupMasters();
}

    // 43, 1
    jamonWriter.write("<table class=\"table table-striped\">\n");
    // 44, 1
View Full Code Here


      public int compare(ServerName s1, ServerName s2) {
        return s1.getServerName().compareTo(s2.getServerName());
      }
    });

    return new ClusterStatus(getClusterId().toString(),
        this.serverManager.getOnlineServers(),
        this.serverManager.getDeadServers(), this.serverName, backupMasters,
        this.assignmentManager.getEntityGroupStates()
            .getEntityGroupsInTransition(),
        this.loadBalancerTracker.isBalancerOn());
View Full Code Here

    assertTrue(rs.next());
    assertTrue(rs.getLong("user_id") == 5);

    egis =  admin.getTableEntityGroups(Bytes.toBytes("user123"));

    ClusterStatus status = admin.getClusterStatus();
    List<ServerName> serverNames = new ArrayList<ServerName>(status.getServers());

    egis = admin.getOnlineEntityGroups(serverNames.get(0));

    admin.move(egis.get(0).getEncodedNameAsBytes(), Bytes.toBytes(serverNames.get(1).getServerName()));
View Full Code Here

        break;
      }
    }
    assertNotNull(active);
    // make sure the other two are backup masters
    ClusterStatus status = active.getClusterStatus();
    assertEquals(2, status.getBackupMastersSize());
    assertEquals(2, status.getBackupMasters().size());

    // tell the active master to shutdown the cluster
    active.shutdown();

    for (int i = NUM_MASTERS - 1; i >= 0; --i) {
View Full Code Here

TOP

Related Classes of com.alibaba.wasp.ClusterStatus

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.