testContextDirect.setTestName("selectOwner() direct").logBefore(); testContext.setTestName("select owner POST").logBefore(); for (URI peerNodeGroupURI : this.host.getNodeGroupMap().values()) { URI nodeSelectorURI = UriUtils.buildUri(peerNodeGroupURI,
testContextDirect.setTestName("selectOwner() direct").logBefore(); testContext.setTestName("select owner POST").logBefore(); for (URI peerNodeGroupURI : this.host.getNodeGroupMap().values()) { URI nodeSelectorURI = UriUtils.buildUri(peerNodeGroupURI,
testContext.setTestName("compute owners for links").logBefore(); for (int i = 0; i < c; i++) { String link = UriUtils.buildUriPath(this.replicationTargetFactoryLink,
testContext.setTestName("compute owners for links").logBefore(); for (int i = 0; i < c; i++) { String link = UriUtils.buildUriPath(this.replicationTargetFactoryLink,
long before = System.nanoTime() / 1000; TestContext testContext = this.host.testCreate(childCount); testContext.setTestName("POST replication"); testContext.logBefore(); for (int i = 0; i < childCount; i++) {
long before = System.nanoTime() / 1000; TestContext testContext = this.host.testCreate(childCount); testContext.setTestName("POST replication"); testContext.logBefore(); for (int i = 0; i < childCount; i++) {
String testName = "Replication with " + action; TestContext testContext = this.host.testCreate(testCount); testContext.setTestName(testName).logBefore();
String testName = "Replication with " + action; TestContext testContext = this.host.testCreate(testCount); testContext.setTestName(testName).logBefore();
patchAndDeleteCtx.setTestName("Concurrent PATCH / DELETE on ODL").logBefore(); for (Entry<URI, ExampleServiceState> e : states.entrySet()) { patch = Operation.createPatch(e.getKey())
ctx.setTestName("DELETE").logBefore(); for (String link : res.documentLinks) { Operation del = Operation.createDelete(this.host, link).setCompletion((o, e) -> {
patchAndDeleteCtx.setTestName("Concurrent PATCH / DELETE on ODL").logBefore(); for (Entry<URI, ExampleServiceState> e : states.entrySet()) { patch = Operation.createPatch(e.getKey())
ctx.setTestName("DELETE").logBefore(); for (String link : res.documentLinks) { Operation del = Operation.createDelete(this.host, link).setCompletion((o, e) -> {
ctx.setTestName("Request limit validation").logBefore(); AtomicInteger limitFailures = new AtomicInteger(); for (Service s : services) {
c.b = 3; int expectedResult = c.a * c.a + c.b * c.b; ctx.setTestName("Stateless service POST throughput").logBefore();
ctx.setTestName("Request limit validation").logBefore(); AtomicInteger limitFailures = new AtomicInteger(); for (Service s : services) {
c.b = 3; int expectedResult = c.a * c.a + c.b * c.b; ctx.setTestName("Stateless service POST throughput").logBefore();
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(); }
ctx.setTestName("Rate limiting with failure").logBefore(); CompletionHandler c = (o, e) -> { if (e != null) { ctx2.setTestName("Rate limiting with auto-read pause of channels").logBefore(); for (URI serviceUri : states.keySet()) { for (int i = 0; i < count; i++) { ctx3.setTestName("No limit").logBefore(); for (URI serviceUri : states.keySet()) { for (int i = 0; i < count; i++) {
ctx.setTestName("Rate limiting with failure").logBefore(); CompletionHandler c = (o, e) -> { if (e != null) { ctx2.setTestName("Rate limiting with auto-read pause of channels").logBefore(); for (URI serviceUri : states.keySet()) { for (int i = 0; i < count; i++) { ctx3.setTestName("No limit").logBefore(); for (URI serviceUri : states.keySet()) { for (int i = 0; i < count; i++) {