Class BGPMock
java.lang.Object
org.opendaylight.protocol.bgp.rib.mock.BGPMock
- All Implemented Interfaces:
Closeable
,AutoCloseable
Mock BGP session. It provides a way how to route a set of messages to BGPSessionListener. This class is thread-safe.
-
Constructor Summary
ConstructorDescriptionBGPMock
(com.google.common.eventbus.EventBus eventBus, MessageRegistry registry, List<byte[]> bgpMessages) -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
org.opendaylight.yangtools.concepts.Registration
registerUpdateListener
(BGPSessionListener listener)
-
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 interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
-
registerUpdateListener
public org.opendaylight.yangtools.concepts.Registration registerUpdateListener(BGPSessionListener listener)
-