testContext.logAfter(); this.replicationTargetLinksOriginal = new HashMap<>(this.replicationTargetLinks);
testContext.logAfter(); this.replicationTargetLinksOriginal = new HashMap<>(this.replicationTargetLinks);
elapsedTimePerAction); testContext.logAfter();
elapsedTimePerAction); testContext.logAfter();
testContext.logAfter();
testContext.logAfter();
patchAndDeleteCtx.logAfter();
patchAndDeleteCtx.logAfter();
ctx.logAfter();
ctx.logAfter();
ctx.logAfter(); host.log("Queue limit failures: %d", limitFailures.get()); assertTrue(limitFailures.get() > 0);
double tput = ctx.logAfter(); this.testResults.getReport().lastValue(TestResults.KEY_THROUGHPUT, tput);
ctx.logAfter(); host.log("Queue limit failures: %d", limitFailures.get()); assertTrue(limitFailures.get() > 0);
double tput = ctx.logAfter(); this.testResults.getReport().lastValue(TestResults.KEY_THROUGHPUT, tput);
private void doUpdates(URI factoryUri, Integer updateCount) { factoryUri = UriUtils.extendUriWithQuery(factoryUri, UriUtils.URI_PARAM_ODATA_TOP, this.serviceCount * 10 + ""); ServiceDocumentQueryResult res = this.host.getFactoryState(factoryUri); assertEquals(this.serviceCount, (long) res.documentCount); TestContext ctx = this.host.testCreate(this.serviceCount * updateCount); ctx.setTestName("PATCH").logBefore(); for (String link : res.documentLinks) { for (int i = 0; i < updateCount; i++) { ExampleServiceState st = new ExampleServiceState(); st.name = i + ""; Operation patch = Operation.createPatch(this.host, link).setBody(st) .setCompletion(ctx.getCompletion()); this.host.send(patch); } } this.host.testWait(ctx); ctx.logAfter(); }
private void doUpdates(URI factoryUri, Integer updateCount) { factoryUri = UriUtils.extendUriWithQuery(factoryUri, UriUtils.URI_PARAM_ODATA_TOP, this.serviceCount * 10 + ""); ServiceDocumentQueryResult res = this.host.getFactoryState(factoryUri); assertEquals(this.serviceCount, (long) res.documentCount); TestContext ctx = this.host.testCreate(this.serviceCount * updateCount); ctx.setTestName("PATCH").logBefore(); for (String link : res.documentLinks) { for (int i = 0; i < updateCount; i++) { ExampleServiceState st = new ExampleServiceState(); st.name = i + ""; Operation patch = Operation.createPatch(this.host, link).setBody(st) .setCompletion(ctx.getCompletion()); this.host.send(patch); } } this.host.testWait(ctx); ctx.logAfter(); }