Package com.alibaba.wasp.client

Examples of com.alibaba.wasp.client.WaspAdmin.move()


    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()));

    stat.execute("INSERT INTO user123 (user_id, photo_id) VALUES (6, 6)");
    rs = stat.executeQuery("select * from user123 where photo_id=6");
    assertTrue(rs.next());
    assertTrue(rs.getLong("user_id") == 6);
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.