Package org.voltdb.client

Examples of org.voltdb.client.Client.createConnection()


        config.setProcedureCallTimeout(600000);
        final Client adminclient = ClientFactory.createClient(config);
        SocketChannel channel = getClientChannel();

        try {
            adminclient.createConnection("localhost", 32323);
            VoltTable[] results = adminclient.callProcedure("@Statistics",
                                                            "LIVECLIENTS",
                                                            0).getResults();
            System.out.println(results[0].toString());
            results = adminclient.callProcedure("@Resume").getResults();
View Full Code Here


            m_client.createConnection("localhost");

            // Need a client with the right auth
            ClientConfig auth_config = new ClientConfig("sysuser", "sysuser");
            auth_client = ClientFactory.createClient(auth_config);
            auth_client.createConnection("localhost");

            ClientResponse resp;
            resp = auth_client.callProcedure("@SystemCatalog", "CLASSES");
            System.out.println(resp.getResults()[0]);
            // New cluster, you're like summer vacation...
View Full Code Here

    }

    public void testStopNode() throws Exception {
        Client client = ClientFactory.createClient();

        client.createConnection("localhost", m_config.port(0));

        try {
            CountDownLatch cdl = new CountDownLatch(1);
            byte expectedResponse = (kfactor > 0) ? ClientResponse.SUCCESS : ClientResponse.GRACEFUL_FAILURE;
            client.callProcedure(new StopCallBack(cdl, expectedResponse, 4), "@StopNode", 4);
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.