Search in sources :

Example 1 with GlobalRpcBenchOutputBuilder

use of org.opendaylight.yang.gen.v1.rpcbench.payload.rev150702.GlobalRpcBenchOutputBuilder in project controller by opendaylight.

the class GlobalBindingRTCServer method globalRpcBench.

@Override
public Future<RpcResult<GlobalRpcBenchOutput>> globalRpcBench(final GlobalRpcBenchInput input) {
    GlobalRpcBenchOutput output = new GlobalRpcBenchOutputBuilder(input).build();
    RpcResult<GlobalRpcBenchOutput> result = RpcResultBuilder.success(output).build();
    numRpcs++;
    return Futures.immediateFuture(result);
}
Also used : GlobalRpcBenchOutput(org.opendaylight.yang.gen.v1.rpcbench.payload.rev150702.GlobalRpcBenchOutput) GlobalRpcBenchOutputBuilder(org.opendaylight.yang.gen.v1.rpcbench.payload.rev150702.GlobalRpcBenchOutputBuilder)

Aggregations

GlobalRpcBenchOutput (org.opendaylight.yang.gen.v1.rpcbench.payload.rev150702.GlobalRpcBenchOutput)1 GlobalRpcBenchOutputBuilder (org.opendaylight.yang.gen.v1.rpcbench.payload.rev150702.GlobalRpcBenchOutputBuilder)1