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)
Invokeadd-prefix
RPC.void
close()
com.google.common.util.concurrent.ListenableFuture<org.opendaylight.yangtools.yang.common.RpcResult<DeletePrefixOutput>>
deletePrefix(DeletePrefixInput input)
Invokedelete-prefix
RPC.void
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
Invokeadd-prefix
RPC.Add prefix into RIB
- Specified by:
addPrefix
in interfaceOdlBgpAppPeerBenchmarkService
- Parameters:
input
- ofadd-prefix
- Returns:
- output of
add-prefix
-
deletePrefix
public com.google.common.util.concurrent.ListenableFuture<org.opendaylight.yangtools.yang.common.RpcResult<DeletePrefixOutput>> deletePrefix(DeletePrefixInput input)
Description copied from interface:OdlBgpAppPeerBenchmarkService
Invokedelete-prefix
RPC.Delete prefix into RIB
- Specified by:
deletePrefix
in interfaceOdlBgpAppPeerBenchmarkService
- Parameters:
input
- ofdelete-prefix
- Returns:
- output of
delete-prefix
-
close
public void close()
- Specified by:
close
in interfaceAutoCloseable
-
-