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 final class AppPeerBenchmark extends Object implements OdlBgpAppPeerBenchmarkService, org.opendaylight.mdsal.binding.api.TransactionChainListener, AutoCloseable
  • Constructor Details

    • AppPeerBenchmark

      public AppPeerBenchmark(org.opendaylight.mdsal.binding.api.DataBroker bindingDataBroker, org.opendaylight.mdsal.binding.api.RpcProviderService rpcProviderRegistry, String appRibId)
  • Method Details

    • 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 interface org.opendaylight.mdsal.binding.api.TransactionChainListener
    • onTransactionChainSuccessful

      public void onTransactionChainSuccessful(org.opendaylight.mdsal.binding.api.TransactionChain chain)
      Specified by:
      onTransactionChainSuccessful in interface org.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
      Invoke add-prefix RPC.
           
               Add prefix into RIB
           
       
      Specified by:
      addPrefix in interface OdlBgpAppPeerBenchmarkService
      Parameters:
      input - of add-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
      Invoke delete-prefix RPC.
           
               Delete prefix into RIB
           
       
      Specified by:
      deletePrefix in interface OdlBgpAppPeerBenchmarkService
      Parameters:
      input - of delete-prefix
      Returns:
      output of delete-prefix
    • close

      public void close()
      Specified by:
      close in interface AutoCloseable