Class BGPMock
- 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 Summary
Constructors Constructor Description BGPMock(com.google.common.eventbus.EventBus eventBus, MessageRegistry registry, List<byte[]> bgpMessages)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
org.opendaylight.yangtools.concepts.ListenerRegistration<BGPSessionListener>
registerUpdateListener(BGPSessionListener listener)
-
-
-
Constructor Detail
-
BGPMock
public BGPMock(com.google.common.eventbus.EventBus eventBus, MessageRegistry registry, List<byte[]> bgpMessages)
-
-
Method Detail
-
close
public void close()
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
-
registerUpdateListener
public org.opendaylight.yangtools.concepts.ListenerRegistration<BGPSessionListener> registerUpdateListener(BGPSessionListener listener)
-
-