Examples of TransactionSelector


Examples of com.oltpbenchmark.benchmarks.twitter.util.TransactionSelector

      return GetFollowers.class.getPackage();
  }

  @Override
  protected List<Worker> makeWorkersImpl(boolean verbose) throws IOException {
    TransactionSelector transSel = new TransactionSelector(
    twitterConf.getTracefile(),
    twitterConf.getTracefile2(),
    workConf.getTransTypes());
    List<TwitterOperation> trace = Collections.unmodifiableList(transSel.readAll());
    transSel.close();
    ArrayList<Worker> workers = new ArrayList<Worker>();
    for (int i = 0; i < workConf.getTerminals(); ++i) {
      TransactionGenerator<TwitterOperation> generator =
          new TraceTransactionGenerator(trace);
      workers.add(new TwitterWorker(i, this, generator));
View Full Code Here

Examples of com.oltpbenchmark.benchmarks.wikipedia.util.TransactionSelector

 
  @Override
  protected List<Worker> makeWorkersImpl(boolean verbose) throws IOException {
      LOG.info(String.format("Initializing %d %s using '%s' as the input trace file",
                               workConf.getTerminals(), WikipediaWorker.class.getSimpleName(), this.traceInput));
    TransactionSelector transSel = new TransactionSelector(this.traceInput, workConf.getTransTypes());
    List<WikipediaOperation> trace = Collections.unmodifiableList(transSel.readAll());
    LOG.info("Total Number of Sample Operations: " + trace.size());
   
    ArrayList<Worker> workers = new ArrayList<Worker>();
    for (int i = 0; i < workConf.getTerminals(); ++i) {
      TransactionGenerator<WikipediaOperation> generator = new TraceTransactionGenerator(trace);
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.