Search in sources :

Example 1 with NotificationProviderService

use of org.opendaylight.controller.sal.binding.api.NotificationProviderService in project openflowplugin by opendaylight.

the class OpenflowpluginTestActivator method onSessionInitiated.

/*
     * (non-Javadoc)
     *
     * @see org.opendaylight.controller.sal.binding.api.BindingAwareProvider#
     * onSessionInitiated
     * (org.opendaylight.controller.sal.binding.api.BindingAwareBroker
     * .ProviderContext)
     */
@Override
public void onSessionInitiated(ProviderContext session) {
    DataBroker salService = session.<DataBroker>getSALService(DataBroker.class);
    OpenflowpluginTestActivator.provider.setDataService(salService);
    NotificationProviderService salService1 = session.<NotificationProviderService>getSALService(NotificationProviderService.class);
    OpenflowpluginTestActivator.provider.setNotificationService(salService1);
    OpenflowpluginTestActivator.provider.start();
    OpenflowpluginTestActivator.provider.register(session);
    OpenflowpluginTestActivator.groupProvider.register(session);
    OpenflowpluginTestActivator.meterProvider.register(session);
    OpenflowpluginTestActivator.tableProvider.register(session);
    this.cmdProvider.onSessionInitiated(session);
    this.cmdGroupProvider.onSessionInitiated(session);
    this.cmdMeterProvider.onSessionInitiated(session);
    this.cmdTableProvider.onSessionInitiated(session);
    this.cmdStatsProvider.onSessionInitiated(session);
    this.cmdNodeConnectorNotification.onSessionInitiated(session);
    this.cmdTopologyNotification.onSessionInitiated(session);
    this.bulkCmdProvider.onSessionInitiated(session);
    this.groupCmdProvider.onSessionInitiated(session);
}
Also used : NotificationProviderService(org.opendaylight.controller.sal.binding.api.NotificationProviderService) DataBroker(org.opendaylight.controller.md.sal.binding.api.DataBroker)

Aggregations

DataBroker (org.opendaylight.controller.md.sal.binding.api.DataBroker)1 NotificationProviderService (org.opendaylight.controller.sal.binding.api.NotificationProviderService)1