Search in sources :

Example 1 with BmpExtensionProviderActivator

use of org.opendaylight.protocol.bmp.spi.registry.BmpExtensionProviderActivator 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));
}
Also used : BmpExtensionProviderContext(org.opendaylight.protocol.bmp.spi.registry.BmpExtensionProviderContext) SimpleBmpExtensionProviderContext(org.opendaylight.protocol.bmp.spi.registry.SimpleBmpExtensionProviderContext) SimpleBGPExtensionProviderContext(org.opendaylight.protocol.bgp.parser.spi.pojo.SimpleBGPExtensionProviderContext) SimpleBGPExtensionProviderContext(org.opendaylight.protocol.bgp.parser.spi.pojo.SimpleBGPExtensionProviderContext) BGPExtensionProviderContext(org.opendaylight.protocol.bgp.parser.spi.BGPExtensionProviderContext) BGPActivator(org.opendaylight.protocol.bgp.parser.impl.BGPActivator) SimpleBmpExtensionProviderContext(org.opendaylight.protocol.bmp.spi.registry.SimpleBmpExtensionProviderContext) BmpExtensionProviderActivator(org.opendaylight.protocol.bmp.spi.registry.BmpExtensionProviderActivator) BmpActivator(org.opendaylight.protocol.bmp.parser.BmpActivator)

Aggregations

BGPActivator (org.opendaylight.protocol.bgp.parser.impl.BGPActivator)1 BGPExtensionProviderContext (org.opendaylight.protocol.bgp.parser.spi.BGPExtensionProviderContext)1 SimpleBGPExtensionProviderContext (org.opendaylight.protocol.bgp.parser.spi.pojo.SimpleBGPExtensionProviderContext)1 BmpActivator (org.opendaylight.protocol.bmp.parser.BmpActivator)1 BmpExtensionProviderActivator (org.opendaylight.protocol.bmp.spi.registry.BmpExtensionProviderActivator)1 BmpExtensionProviderContext (org.opendaylight.protocol.bmp.spi.registry.BmpExtensionProviderContext)1 SimpleBmpExtensionProviderContext (org.opendaylight.protocol.bmp.spi.registry.SimpleBmpExtensionProviderContext)1