private RpcProviderRegistry providerRegistry;
@Override
- public void onSessionInitiated(ProviderContext session) {
- LOG.info("RpcbenchmarkProvider Session Initiated");
+ public void onSessionInitiated(final ProviderContext session) {
+ LOG.debug("RpcbenchmarkProvider Session Initiated");
consumerRegistry = session.getSALService(RpcConsumerRegistry.class);
providerRegistry = session.getSALService(RpcProviderRegistry.class);
@Override
public void close() throws Exception {
- LOG.info("RpcbenchmarkProvider Closed");
+ LOG.debug("RpcbenchmarkProvider Closed");
}
@Override
public Future<RpcResult<StartTestOutput>> startTest(final StartTestInput input) {
- LOG.info("startTest {}", input);
+ LOG.debug("startTest {}", input);
final RTCClient client;
final List<RoutedRpcRegistration<?>> rpcRegs = new ArrayList<>();
try {
ExecutorService executor = Executors.newFixedThreadPool(input.getNumClients().intValue());
- final Runnable testRun = new Runnable() {
- @Override
- public void run() {
- client.runTest(input.getIterations().intValue());
- }
- };
+ final Runnable testRun = () -> client.runTest(input.getIterations().intValue());
LOG.info("Test Started");
long startTime = System.nanoTime();
executor.shutdown();
try {
executor.awaitTermination(testTimeout, TimeUnit.MINUTES);
- } catch (InterruptedException e) {
+ } catch (final InterruptedException e) {
LOG.error("Out of time: test did not finish within the {} min deadline ", testTimeout);
}