use of org.opendaylight.protocol.bmp.spi.registry.BmpExtensionProviderContext in project bgpcep by opendaylight.
the class BmpMockTest method setUp.
@Before
public void setUp() {
final BmpExtensionProviderContext ctx = new SimpleBmpExtensionProviderContext();
this.bmpActivator = new BmpActivator(ServiceLoaderBGPExtensionProviderContext.getSingletonInstance());
this.bmpActivator.start(ctx);
this.bmpDispatcher = new BmpDispatcherImpl(new NioEventLoopGroup(), new NioEventLoopGroup(), ctx.getBmpMessageRegistry(), new DefaultBmpSessionFactory());
}
use of org.opendaylight.protocol.bmp.spi.registry.BmpExtensionProviderContext in project bgpcep by opendaylight.
the class BmpMock method initiateMock.
private static BmpMockDispatcher initiateMock(final BmpMockArguments arguments) {
final BGPExtensionProviderContext bgpCtx = new SimpleBGPExtensionProviderContext();
final BGPActivator bgpActivator = new BGPActivator();
bgpActivator.start(bgpCtx);
final BmpExtensionProviderContext ctx = new SimpleBmpExtensionProviderContext();
final BmpExtensionProviderActivator bmpActivator = new BmpActivator(bgpCtx);
bmpActivator.start(ctx);
return new BmpMockDispatcher(ctx.getBmpMessageRegistry(), new BmpMockSessionFactory(arguments));
}
Aggregations