Package org.radargun.stages.tpcc.transaction

Examples of org.radargun.stages.tpcc.transaction.PaymentTransaction


                  } else if (request.transactionType == TpccTerminal.PAYMENT) {
                     numWriteDequeued++;
                     numPaymentDequeued++;
                     writeInQueueTime += endInQueueTime - request.timestamp;
                     paymentInQueueTime += endInQueueTime - request.timestamp;
                     transaction = new PaymentTransaction(nodeIndex);
                  } else if (request.transactionType == TpccTerminal.ORDER_STATUS) {
                     numReadDequeued++;
                     readInQueueTime += endInQueueTime - request.timestamp;
                     transaction = new OrderStatusTransaction();
                  }
View Full Code Here


      double transactionType = TpccTools.doubleRandomNumber(0, 100);


      if (transactionType <= this.paymentWeight) {
         return new PaymentTransaction(this.indexNode);
      } else if (transactionType <= this.paymentWeight + this.orderStatusWeight) {
         return new OrderStatusTransaction();

      } else {
         return new NewOrderTransaction();
View Full Code Here

TOP

Related Classes of org.radargun.stages.tpcc.transaction.PaymentTransaction

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.