Search in sources :

Example 1 with DeletePrefixOutputBuilder

use of org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.odl.bgp.app.peer.benchmark.rev200120.DeletePrefixOutputBuilder in project bgpcep by opendaylight.

the class AppPeerBenchmark method deletePrefix.

@Override
public ListenableFuture<RpcResult<DeletePrefixOutput>> deletePrefix(final DeletePrefixInput input) {
    final long duration = deleteRoute(input.getPrefix(), input.getCount(), input.getBatchsize());
    final long rate = countRate(duration, input.getCount());
    final DeletePrefixOutputBuilder outputbuilder = new DeletePrefixOutputBuilder();
    outputbuilder.setResult(createResult(input.getCount(), duration, rate));
    final DeletePrefixOutput output = outputbuilder.build();
    return RpcResultBuilder.success(output).buildFuture();
}
Also used : DeletePrefixOutput(org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.odl.bgp.app.peer.benchmark.rev200120.DeletePrefixOutput) DeletePrefixOutputBuilder(org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.odl.bgp.app.peer.benchmark.rev200120.DeletePrefixOutputBuilder)

Aggregations

DeletePrefixOutput (org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.odl.bgp.app.peer.benchmark.rev200120.DeletePrefixOutput)1 DeletePrefixOutputBuilder (org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.odl.bgp.app.peer.benchmark.rev200120.DeletePrefixOutputBuilder)1