MCPcopy Create free account
hub / github.com/cmu-db/benchbase / Phase

Method Phase

src/main/java/com/oltpbenchmark/Phase.java:48–75  ·  view source on GitHub ↗
(
      String benchmarkName,
      int id,
      int t,
      int wt,
      double r,
      List<Double> weights,
      boolean rateLimited,
      boolean disabled,
      boolean serial,
      boolean timed,
      int activeTerminals,
      Arrival a)

Source from the content-addressed store, hash-verified

46 private int nextSerial;
47
48 Phase(
49 String benchmarkName,
50 int id,
51 int t,
52 int wt,
53 double r,
54 List<Double> weights,
55 boolean rateLimited,
56 boolean disabled,
57 boolean serial,
58 boolean timed,
59 int activeTerminals,
60 Arrival a) {
61 this.benchmarkName = benchmarkName;
62 this.id = id;
63 this.time = t;
64 this.warmupTime = wt;
65 this.rate = r;
66 this.weights = weights;
67 this.weightCount = this.weights.size();
68 this.rateLimited = rateLimited;
69 this.disabled = disabled;
70 this.serial = serial;
71 this.timed = timed;
72 this.nextSerial = 1;
73 this.activeTerminals = activeTerminals;
74 this.arrival = a;
75 }
76
77 public boolean isRateLimited() {
78 return rateLimited;

Callers

nothing calls this directly

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected