Package org.voltdb.client

Examples of org.voltdb.client.ClientConfig


            // no reasonable way to get the timing right in valgrind
            // also, this test isn't really about c++ code
            return;
        }

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

        try {
            adminclient.createConnection("localhost", 32323);
View Full Code Here


            catch (IOException ioe) {
                assertTrue(ioe.getMessage().contains("Authentication rejected"));
            }
            m_client.close();
            // reconnect m_client with auth that will connect but no sysproc powers
            ClientConfig bad_config = new ClientConfig("adhocuser", "adhocuser");
            m_client = ClientFactory.createClient(bad_config);
            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");
View Full Code Here

     * @param config Parsed & validated CLI options.
     */
    public SyncBenchmark(KVConfig config) {
        this.config = config;

        ClientConfig clientConfig = new ClientConfig("", "");
        clientConfig.setReconnectOnConnectionLoss(true);
        clientConfig.setClientAffinity(true);
        client = ClientFactory.createClient(clientConfig);

        periodicStatsContext = client.createStatsContext();
        fullStatsContext = client.createStatsContext();

View Full Code Here

TOP

Related Classes of org.voltdb.client.ClientConfig

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.