Examples of backpressureBarrier()


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

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

        final Client client = this.getClientHandle();

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

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

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

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

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

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

        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

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

        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

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

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

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

                // 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

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

    public void backpressureBarrier() throws InterruptedException, IOException {
        ClientImpl currentClient = this.getClient();
        if (currentClient == null) {
            throw new IOException("Client is unavailable for backpressureBarrier().");
        }
        currentClient.backpressureBarrier();
    }

    /**
     * Synchronously invokes UpdateApplicationCatalog procedure. Blocks until a result is available.
     * A {@link ProcCallException} is thrown if the response is anything other then success.
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.