Package org.voltdb.client

Examples of org.voltdb.client.ProcedureCallback


    static void getHashTags(Client client, long time, int count)
    {
        //System.out.println("Getting " + count + " tags newer than time: " + time);
        try
        {
            while (!client.callProcedure(new ProcedureCallback()
            {
                @Override
                public void clientCallback(ClientResponse response) {
                    if (response.getStatus() != ClientResponse.SUCCESS){
                        System.out.println("failed count batch");
View Full Code Here


            final long endTime = System.currentTimeMillis() + (1000l * duration);
            Random rand = new Random();
            while (endTime > System.currentTimeMillis())
            {
                // Post the request, asynchronously
                Con.executeAsync(new ProcedureCallback()
                {
                    @Override
                    public void clientCallback(ClientResponse response) throws Exception
                    {
                        // Track the result of the request (Success, Failure)
View Full Code Here

        }

        byte deceased = (byte) (m_rand.nextBoolean() ? 1 : 0);
        try
        {
            while (!client.callProcedure(new ProcedureCallback()
                {
                    @Override
                    public void clientCallback(ClientResponse response) {
                        if (response.getStatus() != ClientResponse.SUCCESS){
                            System.out.println("failed insert");
View Full Code Here

        long start_time = System.currentTimeMillis();
        for (int i = 0; i < NUM_NAMES; i++)
        {
            try
            {
                while (!client.callProcedure(new ProcedureCallback()
                {
                    @Override
                    public void clientCallback(ClientResponse response) {
                        if (response.getStatus() != ClientResponse.SUCCESS){
                            System.out.println("failed delete batch");
View Full Code Here

        long start_time = System.currentTimeMillis();
        for (int i = 0; i < NUM_NAMES; i++)
        {
            try
            {
                while (!client.callProcedure(new ProcedureCallback()
                {
                    @Override
                    public void clientCallback(ClientResponse response) {
                        if (response.getStatus() != ClientResponse.SUCCESS){
                            System.out.println("failed delete deceased");
View Full Code Here

        long start_time = System.currentTimeMillis();
        for (int i = 0; i < 1; i++)
        {
            try
            {
                while (!client.callProcedure(new ProcedureCallback()
                {
                    @Override
                    public void clientCallback(ClientResponse response) {
                        if (response.getStatus() != ClientResponse.SUCCESS){
                            System.out.println("failed count batch");
View Full Code Here

                    System.out.println(response.getStatusString());
                }
            }
            else {
                client.callProcedure(
                                     new ProcedureCallback()
                                     {
                                         @Override
                                         public void clientCallback(ClientResponse response) {
                                             if (response.getStatus() != ClientResponse.SUCCESS)
                                             {
View Full Code Here

        }

        Object params[] = new Object[1];
        params[0] = m_truncationSnapshotPath;
        long handle = m_nextCallbackHandle++;
        m_procedureCallbacks.put(handle, new ProcedureCallback() {

            @Override
            public void clientCallback(final ClientResponse clientResponse)
                    throws Exception {
                if (clientResponse.getStatus() != ClientResponse.SUCCESS){
View Full Code Here

            new Object[] {
                paths,
                nonces,
                };
        long handle = m_nextCallbackHandle++;
        m_procedureCallbacks.put(handle, new ProcedureCallback() {

            @Override
            public void clientCallback(ClientResponse clientResponse)
                    throws Exception {
                if (clientResponse.getStatus() != ClientResponse.SUCCESS) {
View Full Code Here

        // for the snapshot save invocations
        long handle = m_nextCallbackHandle++;

        // for the snapshot save invocation
        m_procedureCallbacks.put(handle, new ProcedureCallback() {

            @Override
            public void clientCallback(ClientResponse clientResponse)
                    throws Exception {
                m_lastInitiationTs = null;
View Full Code Here

TOP

Related Classes of org.voltdb.client.ProcedureCallback

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.