this.rng = rng;
this.scale_factor = benchmark.getWorkloadConfiguration().getScaleFactor();
this.num_clients = benchmark.getWorkloadConfiguration().getTerminals();
this.loaderStartTime = new Timestamp(System.currentTimeMillis());
this.randomInitialPrice = new Zipf(this.rng,
AuctionMarkConstants.ITEM_INITIAL_PRICE_MIN,
AuctionMarkConstants.ITEM_INITIAL_PRICE_MAX,
AuctionMarkConstants.ITEM_INITIAL_PRICE_SIGMA);
// Random time difference in a second scale
this.randomTimeDiff = new Gaussian(this.rng,
AuctionMarkConstants.ITEM_PRESERVE_DAYS * 24 * 60 * 60 * -1,
AuctionMarkConstants.ITEM_DURATION_DAYS_MAX * 24 * 60 * 60);
this.randomDuration = new Gaussian(this.rng,
AuctionMarkConstants.ITEM_DURATION_DAYS_MIN,
AuctionMarkConstants.ITEM_DURATION_DAYS_MAX);
this.randomPurchaseDuration = new Zipf(this.rng,
AuctionMarkConstants.ITEM_PURCHASE_DURATION_DAYS_MIN,
AuctionMarkConstants.ITEM_PURCHASE_DURATION_DAYS_MAX,
AuctionMarkConstants.ITEM_PURCHASE_DURATION_DAYS_SIGMA);
this.randomNumImages = new Zipf(this.rng,
AuctionMarkConstants.ITEM_NUM_IMAGES_MIN,
AuctionMarkConstants.ITEM_NUM_IMAGES_MAX,
AuctionMarkConstants.ITEM_NUM_IMAGES_SIGMA);
this.randomNumAttributes = new Zipf(this.rng,
AuctionMarkConstants.ITEM_NUM_GLOBAL_ATTRS_MIN,
AuctionMarkConstants.ITEM_NUM_GLOBAL_ATTRS_MAX,
AuctionMarkConstants.ITEM_NUM_GLOBAL_ATTRS_SIGMA);
this.randomNumComments = new Zipf(this.rng,
AuctionMarkConstants.ITEM_NUM_COMMENTS_MIN,
AuctionMarkConstants.ITEM_NUM_COMMENTS_MAX,
AuctionMarkConstants.ITEM_NUM_COMMENTS_SIGMA);
if (LOG.isTraceEnabled())