java.lang.Object
org.opendaylight.protocol.bgp.rib.mock.BGPMock
All Implemented Interfaces:
Closeable, AutoCloseable

public final class BGPMock extends Object implements Closeable
Mock BGP session. It provides a way how to route a set of messages to BGPSessionListener. This class is thread-safe.
  • Constructor Details

    • BGPMock

      public BGPMock(com.google.common.eventbus.EventBus eventBus, MessageRegistry registry, List<byte[]> bgpMessages)
  • Method Details

    • close

      public void close()
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Closeable
    • registerUpdateListener

      public org.opendaylight.yangtools.concepts.Registration registerUpdateListener(BGPSessionListener listener)