public abstract class AbstractBenchmarkState<T extends AbstractBenchmarkState<T>>
extends io.scalecube.benchmarks.BenchmarkState<T>
| Modifier and Type | Field and Description |
|---|---|
protected BiFunction<io.scalecube.services.transport.api.Address,reactor.netty.resources.LoopResources,Client> |
clientBuilder |
static ClientMessage |
FIRST_REQUEST |
protected reactor.netty.resources.LoopResources |
loopResources |
| Constructor and Description |
|---|
AbstractBenchmarkState(io.scalecube.benchmarks.BenchmarkSettings settings,
BiFunction<io.scalecube.services.transport.api.Address,reactor.netty.resources.LoopResources,Client> clientBuilder) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
afterAll() |
protected void |
beforeAll() |
abstract reactor.core.publisher.Mono<Client> |
createClient() |
protected reactor.core.publisher.Mono<Client> |
createClient(io.scalecube.services.transport.api.Address gatewayAddress,
BiFunction<io.scalecube.services.transport.api.Address,reactor.netty.resources.LoopResources,Client> clientBuilder) |
protected reactor.core.publisher.Mono<Client> |
createClient(Microservices gateway,
String gatewayName,
BiFunction<io.scalecube.services.transport.api.Address,reactor.netty.resources.LoopResources,Client> clientBuilder) |
public static final ClientMessage FIRST_REQUEST
protected reactor.netty.resources.LoopResources loopResources
protected BiFunction<io.scalecube.services.transport.api.Address,reactor.netty.resources.LoopResources,Client> clientBuilder
public AbstractBenchmarkState(io.scalecube.benchmarks.BenchmarkSettings settings,
BiFunction<io.scalecube.services.transport.api.Address,reactor.netty.resources.LoopResources,Client> clientBuilder)
protected void beforeAll()
throws Exception
beforeAll in class io.scalecube.benchmarks.BenchmarkState<T extends AbstractBenchmarkState<T>>Exceptionprotected void afterAll()
throws Exception
afterAll in class io.scalecube.benchmarks.BenchmarkState<T extends AbstractBenchmarkState<T>>Exceptionpublic abstract reactor.core.publisher.Mono<Client> createClient()
protected final reactor.core.publisher.Mono<Client> createClient(Microservices gateway, String gatewayName, BiFunction<io.scalecube.services.transport.api.Address,reactor.netty.resources.LoopResources,Client> clientBuilder)
protected final reactor.core.publisher.Mono<Client> createClient(io.scalecube.services.transport.api.Address gatewayAddress, BiFunction<io.scalecube.services.transport.api.Address,reactor.netty.resources.LoopResources,Client> clientBuilder)
Copyright © 2015–2019. All rights reserved.