Examples of run()


Examples of com.oltpbenchmark.benchmarks.resourcestresser.procedures.IO1.run()

    }

    private void io1Transaction(int howManyUpdatePerTransaction, int howManyRowsPerUpdate) throws SQLException {
        IO1 proc = this.getProcedure(IO1.class);
        assert (proc != null);
        proc.run(conn, this.getId());
    }

    private void io2Transaction(boolean makeSureWorketSetFitsInMemory, int howManyUpdatePerTransaction) throws SQLException {
        IO2 proc = this.getProcedure(IO2.class);
        assert (proc != null);
View Full Code Here

Examples of com.oltpbenchmark.benchmarks.resourcestresser.procedures.IO2.run()

    }

    private void io2Transaction(boolean makeSureWorketSetFitsInMemory, int howManyUpdatePerTransaction) throws SQLException {
        IO2 proc = this.getProcedure(IO2.class);
        assert (proc != null);
        proc.run(conn, this.getId());
    }

    private void cpu1Transaction(int howManyPerTrasaction, long sleepLength) throws SQLException {
        CPU1 proc = this.getProcedure(CPU1.class);
        assert (proc != null);
View Full Code Here

Examples of com.oltpbenchmark.benchmarks.seats.procedures.LoadConfig.run()

           
            if (LOG.isDebugEnabled()) LOG.debug("Loading SEATSProfile for the first time");
           
            // Otherwise we have to go fetch everything again
            LoadConfig proc = worker.getProcedure(LoadConfig.class);
            ResultSet results[] = proc.run(worker.getConnection());
            int result_idx = 0;
           
            // CONFIG_PROFILE
            this.loadConfigProfile(results[result_idx++]);
           
View Full Code Here

Examples of com.oltpbenchmark.benchmarks.tpcc.procedures.Delivery.run()

          OrderStatus proc4 = (OrderStatus) this.getProcedure(OrderStatus.class);
          proc4.run(conn, gen, terminalWarehouseID, numWarehouses,
              terminalDistrictLowerID, terminalDistrictUpperID, this);
        } else if (nextTransaction.getProcedureClass().equals(Delivery.class)) {
          Delivery proc5 = (Delivery) this.getProcedure(Delivery.class);
      proc5.run(conn, gen, terminalWarehouseID, numWarehouses,
          terminalDistrictLowerID, terminalDistrictUpperID, this);
        } else {
          System.err.println("We have been invoked with an INVALID transactionType?!");
          throw new RuntimeException("Bad transaction type = "+ nextTransaction);
        }
View Full Code Here

Examples of com.oltpbenchmark.benchmarks.tpcc.procedures.NewOrder.run()

   */
  @Override
    protected TransactionStatus executeWork(TransactionType nextTransaction) throws UserAbortException, SQLException {
        if (nextTransaction.getProcedureClass().equals(NewOrder.class)) {
          NewOrder proc = (NewOrder) this.getProcedure(NewOrder.class);
      proc.run(conn, gen, terminalWarehouseID, numWarehouses,
          terminalDistrictLowerID, terminalDistrictUpperID, this);
        } else if (nextTransaction.getProcedureClass().equals(Payment.class)) {
      Payment proc2 = (Payment) this.getProcedure(Payment.class);
      proc2.run(conn, gen, terminalWarehouseID, numWarehouses,
          terminalDistrictLowerID, terminalDistrictUpperID, this);
View Full Code Here

Examples of com.oltpbenchmark.benchmarks.tpcc.procedures.OrderStatus.run()

          StockLevel proc3 = (StockLevel) this.getProcedure(StockLevel.class);
          proc3.run(conn, gen, terminalWarehouseID, numWarehouses,
              terminalDistrictLowerID, terminalDistrictUpperID, this);
        } else if (nextTransaction.getProcedureClass().equals(OrderStatus.class)) {
          OrderStatus proc4 = (OrderStatus) this.getProcedure(OrderStatus.class);
          proc4.run(conn, gen, terminalWarehouseID, numWarehouses,
              terminalDistrictLowerID, terminalDistrictUpperID, this);
        } else if (nextTransaction.getProcedureClass().equals(Delivery.class)) {
          Delivery proc5 = (Delivery) this.getProcedure(Delivery.class);
      proc5.run(conn, gen, terminalWarehouseID, numWarehouses,
          terminalDistrictLowerID, terminalDistrictUpperID, this);
View Full Code Here

Examples of com.oltpbenchmark.benchmarks.tpcc.procedures.Payment.run()

          NewOrder proc = (NewOrder) this.getProcedure(NewOrder.class);
      proc.run(conn, gen, terminalWarehouseID, numWarehouses,
          terminalDistrictLowerID, terminalDistrictUpperID, this);
        } else if (nextTransaction.getProcedureClass().equals(Payment.class)) {
      Payment proc2 = (Payment) this.getProcedure(Payment.class);
      proc2.run(conn, gen, terminalWarehouseID, numWarehouses,
          terminalDistrictLowerID, terminalDistrictUpperID, this);
        } else if (nextTransaction.getProcedureClass().equals(StockLevel.class)) {
          StockLevel proc3 = (StockLevel) this.getProcedure(StockLevel.class);
          proc3.run(conn, gen, terminalWarehouseID, numWarehouses,
              terminalDistrictLowerID, terminalDistrictUpperID, this);
View Full Code Here

Examples of com.oltpbenchmark.benchmarks.tpcc.procedures.StockLevel.run()

      Payment proc2 = (Payment) this.getProcedure(Payment.class);
      proc2.run(conn, gen, terminalWarehouseID, numWarehouses,
          terminalDistrictLowerID, terminalDistrictUpperID, this);
        } else if (nextTransaction.getProcedureClass().equals(StockLevel.class)) {
          StockLevel proc3 = (StockLevel) this.getProcedure(StockLevel.class);
          proc3.run(conn, gen, terminalWarehouseID, numWarehouses,
              terminalDistrictLowerID, terminalDistrictUpperID, this);
        } else if (nextTransaction.getProcedureClass().equals(OrderStatus.class)) {
          OrderStatus proc4 = (OrderStatus) this.getProcedure(OrderStatus.class);
          proc4.run(conn, gen, terminalWarehouseID, numWarehouses,
              terminalDistrictLowerID, terminalDistrictUpperID, this);
View Full Code Here

Examples of com.oltpbenchmark.benchmarks.twitter.procedures.GetFollowers.run()

    }

    public void doSelectNamesOfPplThatFollowMe(int uid) throws SQLException {
        GetFollowers proc = this.getProcedure(GetFollowers.class);
        assert (proc != null);
        proc.run(conn, uid);
    }

    public void doSelectTweetsForUid(int uid) throws SQLException {
        GetUserTweets proc = this.getProcedure(GetUserTweets.class);
        assert (proc != null);
View Full Code Here

Examples of com.oltpbenchmark.benchmarks.twitter.procedures.GetTweet.run()

    }

    public void doSelect1Tweet(int tweet_id) throws SQLException {
        GetTweet proc = this.getProcedure(GetTweet.class);
        assert (proc != null);
        proc.run(conn, tweet_id).close();
    }

    public void doSelectTweetsFromPplIFollow(int uid) throws SQLException {
        GetTweetsFromFollowing proc = this.getProcedure(GetTweetsFromFollowing.class);
        assert (proc != null);
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.