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

Method currentPhaseString

src/main/java/com/oltpbenchmark/Phase.java:207–228  ·  view source on GitHub ↗

Returns a string for logging purposes when entering the phase

()

Source from the content-addressed store, hash-verified

205
206 /** Returns a string for logging purposes when entering the phase */
207 public String currentPhaseString() {
208 List<String> inner = new ArrayList<>();
209 inner.add("[Workload=" + benchmarkName.toUpperCase() + "]");
210 if (isDisabled()) {
211 inner.add("[Disabled=true]");
212 } else {
213 if (isLatencyRun()) {
214 inner.add("[Serial=true]");
215 inner.add("[Time=n/a]");
216 } else {
217 inner.add("[Serial=" + isSerial() + "]");
218 inner.add("[Time=" + time + "]");
219 }
220 inner.add("[WarmupTime=" + warmupTime + "]");
221 inner.add("[Rate=" + (isRateLimited() ? rate : "unlimited") + "]");
222 inner.add("[Arrival=" + arrival + "]");
223 inner.add("[Ratios=" + getWeights() + "]");
224 inner.add("[ActiveWorkers=" + getActiveTerminals() + "]");
225 }
226
227 return StringUtil.bold("PHASE START") + " :: " + StringUtil.join(" ", inner);
228 }
229}

Callers 1

Calls 9

isDisabledMethod · 0.95
isLatencyRunMethod · 0.95
isSerialMethod · 0.95
isRateLimitedMethod · 0.95
getWeightsMethod · 0.95
getActiveTerminalsMethod · 0.95
boldMethod · 0.95
joinMethod · 0.95
addMethod · 0.80

Tested by

no test coverage detected