Examples of waitForResponse()


Examples of org.voltdb.client.SyncCallback.waitForResponse()

        client.callProcedure(cb,
                org.voltdb.benchmark.tpcc.procedures.InsertOrderLineBatched.class.getSimpleName(),
                new long[] {x}, new long[] {x}, x, new long[] {x},
                new long[] {x}, new long[] {x}, new TimestampType[] { new TimestampType() }, new long[] {x},
                new double[] {x}, new String[] {"a"});
        cb.waitForResponse();
        assertNotSame(cb.getResponse().getStatus(), Status.OK);

        loadSomeData(client, 60, 5);

        // change the insert new order procedure
View Full Code Here

Examples of org.voltdb.client.SyncCallback.waitForResponse()

                    a_int.get(i),
                    a_inline_str.get(i),
                    a_pool_str.get(i));

            if (!async) {
                cb.waitForResponse();
                VoltTable vt = cb.getResponse().getResults()[0];
                assertTrue(vt.getRowCount() == 1);
            }
        }
View Full Code Here

Examples of org.voltdb.client.SyncCallback.waitForResponse()

        for (int i = 0; i < 100; i++) {
            SyncCallback cb = new SyncCallback();
            client.callProcedure(cb, "InsertO3", 3, i, i, i);

            if (!async) {
                cb.waitForResponse();
                VoltTable vt = cb.getResponse().getResults()[0];
                assertTrue(vt.getRowCount() == 1);
            }
        }
    }
View Full Code Here

Examples of org.voltdb.client.SyncCallback.waitForResponse()

            e.printStackTrace();
            System.exit(-1);
        }

        try {
            cb.waitForResponse();
        } catch (InterruptedException e) {
            e.printStackTrace();
        };
    }
}
View Full Code Here

Examples of org.voltdb.client.SyncCallback.waitForResponse()

                }
            } while (!done);


            if (!async) {
                cb.waitForResponse();
                vt = cb.getResponse().getResults()[0];
                assertTrue(vt.getRowCount() == 1);
                // assertTrue(vt.asScalarLong() == 1);
            }
        }
View Full Code Here

Examples of org.voltdb.client.SyncCallback.waitForResponse()

        client.updateApplicationCatalog(new CatTestCallback(ClientResponse.SUCCESS),
                new File(newCatalogURL), null);
        // Then, update the users in the deployment
        SyncCallback cb2 = new SyncCallback();
        client.updateApplicationCatalog(cb2, null, new File(deploymentURL));
        cb2.waitForResponse();
        assertEquals(ClientResponse.USER_ABORT, cb2.getResponse().getStatus());
        assertTrue(cb2.getResponse().getStatusString().contains("Invalid catalog update"));

        // Verify the heartbeat timeout change didn't take
        Client client3 = getClient();
View Full Code Here

Examples of org.voltdb.client.SyncCallback.waitForResponse()

        String deploymentURL = Configuration.getPathToCatalogForTest("catalogupdate-cluster-change_schema_update.xml");
        // Try to change the schem setting
        SyncCallback cb = new SyncCallback();
        client.updateApplicationCatalog(cb, null, new File(deploymentURL));
        cb.waitForResponse();
        assertEquals(ClientResponse.GRACEFUL_FAILURE, cb.getResponse().getStatus());
        System.out.println(cb.getResponse().getStatusString());
        assertTrue(cb.getResponse().getStatusString().contains("May not dynamically modify"));
    }
View Full Code Here

Examples of org.voltdb.client.SyncCallback.waitForResponse()

        String deploymentURL = Configuration.getPathToCatalogForTest("catalogupdate-security-no-users.xml");
        // Try to change the schem setting
        SyncCallback cb = new SyncCallback();
        client.updateApplicationCatalog(cb, null, new File(deploymentURL));
        cb.waitForResponse();
        assertEquals(ClientResponse.GRACEFUL_FAILURE, cb.getResponse().getStatus());
        System.out.println(cb.getResponse().getStatusString());
        assertTrue(cb.getResponse().getStatusString().contains("Unable to update"));
    }
View Full Code Here

Examples of org.voltdb.client.SyncCallback.waitForResponse()

                    a_int.get(i),
                    a_inline_str.get(i),
                    a_pool_str.get(i));

            if (!async) {
                cb.waitForResponse();
                VoltTable vt = cb.getResponse().getResults()[0];
                assertTrue(vt.getRowCount() == 1);
            }
        }
View Full Code Here

Examples of org.voltdb.client.SyncCallback.waitForResponse()

                    a_int.get(i),
                    a_int.get(i)
                    );

            if (!async) {
                cb.waitForResponse();
                VoltTable vt = cb.getResponse().getResults()[0];
                assertTrue(vt.getRowCount() == 1);
            }
        }
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.