Package org.radargun.stages.tpcc.domain

Examples of org.radargun.stages.tpcc.domain.History


      if (w_name.length() > 10) w_name = w_name.substring(0, 10);
      if (d_name.length() > 10) d_name = d_name.substring(0, 10);
      h_data = w_name + "    " + d_name;

      History h = new History(c.getC_id(), c_d_id, c_w_id, d_id, w_id, new Date(), h_amount, h_data);
      h.store(basicCache, this.slaveIndex);
   }
View Full Code Here


   private void populateHistory(int id_customer, int id_wharehouse, int id_district) {
      //log.info("populate history");
      if (id_customer < 0 || id_wharehouse < 0 || id_district < 0) {
         return;
      } else {
         History newHistory = new History(id_customer, id_district, id_wharehouse, id_district, id_wharehouse, new Date(System.currentTimeMillis()), 10, TpccTools.aleaChainec(12, 24));
         boolean successful = false;
         while (!successful) {
            try {
               newHistory.store(basicCache, this.slaveIndex);
               successful = true;
            } catch (Throwable e) {
               log.warn("Storing new history failed", e);
            }
         }
View Full Code Here

TOP

Related Classes of org.radargun.stages.tpcc.domain.History

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.