Package com.oltpbenchmark.api

Examples of com.oltpbenchmark.api.Procedure


                return (TransactionStatus.RETRY_DIFFERENT);
            }
        }
       
        // Get the Procedure handle
        Procedure proc = this.getProcedure(txnType);
        assert(proc != null);
        if (LOG.isTraceEnabled())
            LOG.trace(txnType + " -> " + txn + " -> " + txnType.getProcedureClass() + " -> " + proc);
       
        boolean ret = false;
View Full Code Here


           
            TransactionTypes txnTypes = AuctionMarkWorker.this.getWorkloadConfiguration().getTransTypes();
            TransactionType txnType = txnTypes.getType(CloseAuctions.class);
            assert(txnType != null) : txnTypes;
           
            Procedure proc = AuctionMarkWorker.this.getProcedure(txnType);
            assert(proc != null);
           
            long sleepTime = AuctionMarkConstants.CLOSE_AUCTIONS_INTERVAL / AuctionMarkConstants.TIME_SCALE_FACTOR;
            while (true) {
                if (LOG.isDebugEnabled())
View Full Code Here

    protected TransactionStatus executeWork(TransactionType txnType) throws UserAbortException, SQLException {
        Transaction txn = Transaction.get(txnType.getName());
        assert(txn != null) : "Unexpected " + txnType;
       
        // Get the Procedure handle
        Procedure proc = this.getProcedure(txnType);
        assert(proc != null) : String.format("Failed to get Procedure handle for %s.%s",
                                             this.getBenchmarkModule().getBenchmarkName(), txnType);
        if (LOG.isDebugEnabled())
            LOG.debug("Attempting to execute " + proc);
        boolean ret = false;
View Full Code Here

  protected TransactionStatus executeWork(TransactionType txnType) throws UserAbortException, SQLException {
      Transaction t = Transaction.get(txnType.getName());
        assert(t != null) : "Unexpected " + txnType;
       
        // Get the Procedure handle
        Procedure proc = this.getProcedure(txnType);
        assert(proc != null) : String.format("Failed to get Procedure handle for %s.%s",
                                             this.getBenchmarkModule().getBenchmarkName(), txnType);
        if (LOG.isDebugEnabled()) LOG.debug("Executing " + proc);
       
        t.invoke(this.conn, proc, subscriberSize);
View Full Code Here

TOP

Related Classes of com.oltpbenchmark.api.Procedure

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.