Package org.voltdb.client

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


            // queue up to be sent when there is no longer any back
            // pressure.
            if (bp) {
                if (this.profiling) this.block_time.start();
                try {
                    client.backpressureBarrier();
                } finally {
                    if (this.profiling) this.block_time.stop();
                }
                bp = false;
            }
View Full Code Here


        final Client client = this.getClientHandle();

        try {
            while (true) {
                this.runOnce();
                client.backpressureBarrier();
            } // WHILE
        } catch (Exception ex) {
            ex.printStackTrace();
        }
    }
View Full Code Here

      public void runLoop() {
        Client client = this.getClientHandle();
          try {
              while (true) {
                  this.runOnce();
                  client.backpressureBarrier();
              } // WHILE
          } catch (Exception ex) {
              ex.printStackTrace();
          }
//
View Full Code Here

       
        // Execute Transactions
        try {
            while (true) {
                runOnce();
                client.backpressureBarrier();
            } // WHILE
        } catch (InterruptedException e) {
            e.printStackTrace();
            return;
        } catch (NoConnectionsException e) {
View Full Code Here

        Client client = this.getClientHandle();
        try {
            while (true) {
                // Figure out what page they're going to update
                this.runOnce();
                client.backpressureBarrier();
            } // WHILE
        } catch (Exception ex) {
            ex.printStackTrace();
        }
    }
View Full Code Here

        Client client = this.getClientHandle();
        // Execute Transactions
        try {
            while (true) {
                runOnce();
                client.backpressureBarrier();
            } // WHILE
        } catch (InterruptedException e) {
            e.printStackTrace();
            return;
        } catch (NoConnectionsException e) {
View Full Code Here

      public void runLoop() {
        Client client = this.getClientHandle();
          try {
              while (true) {
                  this.runOnce();
                  client.backpressureBarrier();
              } // WHILE
          } catch (Exception ex) {
              ex.printStackTrace();
          }
//
View Full Code Here

                // is non-blocking
                client.callProcedure(callback, procName, procIdx);

                // Check whether all the nodes are backed-up and this client
                // should block before sending new requests.
                client.backpressureBarrier();
            } // WHILE
        } catch (NoConnectionsException e) {
            // Client has no clean mechanism for terminating with the DB.
            return;
        } catch (InterruptedException e) {
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.