Class AppPeerBenchmark
- java.lang.Object
-
- org.opendaylight.protocol.bgp.benchmark.app.AppPeerBenchmark
-
- All Implemented Interfaces:
AutoCloseable
,EventListener
,org.opendaylight.mdsal.binding.api.TransactionChainListener
,OdlBgpAppPeerBenchmarkService
,org.opendaylight.yangtools.yang.binding.RpcService
public class AppPeerBenchmark extends Object implements OdlBgpAppPeerBenchmarkService, org.opendaylight.mdsal.binding.api.TransactionChainListener, AutoCloseable
-
-
Constructor Summary
Constructors Constructor Description AppPeerBenchmark(org.opendaylight.mdsal.binding.api.DataBroker bindingDataBroker, org.opendaylight.mdsal.binding.api.RpcProviderService rpcProviderRegistry, String appRibId)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.google.common.util.concurrent.ListenableFuture<org.opendaylight.yangtools.yang.common.RpcResult<AddPrefixOutput>>
addPrefix(AddPrefixInput input)
Add prefix into RIBvoid
close()
com.google.common.util.concurrent.ListenableFuture<org.opendaylight.yangtools.yang.common.RpcResult<DeletePrefixOutput>>
deletePrefix(DeletePrefixInput input)
Delete prefix into RIBvoid
onTransactionChainFailed(org.opendaylight.mdsal.binding.api.TransactionChain chain, org.opendaylight.mdsal.binding.api.Transaction transaction, Throwable cause)
void
onTransactionChainSuccessful(org.opendaylight.mdsal.binding.api.TransactionChain chain)
void
start()
-
-
-
Constructor Detail
-
AppPeerBenchmark
public AppPeerBenchmark(org.opendaylight.mdsal.binding.api.DataBroker bindingDataBroker, org.opendaylight.mdsal.binding.api.RpcProviderService rpcProviderRegistry, String appRibId)
-
-
Method Detail
-
start
public void start()
-
onTransactionChainFailed
public void onTransactionChainFailed(org.opendaylight.mdsal.binding.api.TransactionChain chain, org.opendaylight.mdsal.binding.api.Transaction transaction, Throwable cause)
- Specified by:
onTransactionChainFailed
in interfaceorg.opendaylight.mdsal.binding.api.TransactionChainListener
-
onTransactionChainSuccessful
public void onTransactionChainSuccessful(org.opendaylight.mdsal.binding.api.TransactionChain chain)
- Specified by:
onTransactionChainSuccessful
in interfaceorg.opendaylight.mdsal.binding.api.TransactionChainListener
-
addPrefix
public com.google.common.util.concurrent.ListenableFuture<org.opendaylight.yangtools.yang.common.RpcResult<AddPrefixOutput>> addPrefix(AddPrefixInput input)
Description copied from interface:OdlBgpAppPeerBenchmarkService
Add prefix into RIB- Specified by:
addPrefix
in interfaceOdlBgpAppPeerBenchmarkService
-
deletePrefix
public com.google.common.util.concurrent.ListenableFuture<org.opendaylight.yangtools.yang.common.RpcResult<DeletePrefixOutput>> deletePrefix(DeletePrefixInput input)
Description copied from interface:OdlBgpAppPeerBenchmarkService
Delete prefix into RIB- Specified by:
deletePrefix
in interfaceOdlBgpAppPeerBenchmarkService
-
close
public void close()
- Specified by:
close
in interfaceAutoCloseable
-
-