@Singleton public class FlowBasedServicesConfigListener extends Object implements org.opendaylight.controller.md.sal.binding.api.ClusteredDataTreeChangeListener<ServicesInfo>, org.opendaylight.serviceutils.srm.RecoverableListener
Constructor and Description |
---|
FlowBasedServicesConfigListener(org.opendaylight.controller.md.sal.binding.api.DataBroker dataBroker,
EntityOwnershipUtils entityOwnershipUtils,
org.opendaylight.infrautils.jobcoordinator.JobCoordinator coordinator,
FlowBasedServicesRendererFactoryResolver flowBasedServicesRendererFactoryResolver,
InterfaceManagerCommonUtils interfaceManagerCommonUtils,
InterfaceServiceRecoveryHandler interfaceServiceRecoveryHandler,
org.opendaylight.serviceutils.srm.ServiceRecoveryRegistry serviceRecoveryRegistry) |
Modifier and Type | Method and Description |
---|---|
protected void |
add(ServicesInfoKey serviceKey,
BoundServices boundServicesNew,
List<BoundServices> boundServicesList) |
void |
close() |
void |
deregisterListener() |
protected org.opendaylight.yangtools.yang.binding.InstanceIdentifier<ServicesInfo> |
getWildCardPath() |
void |
onDataTreeChanged(Collection<org.opendaylight.controller.md.sal.binding.api.DataTreeModification<ServicesInfo>> collection) |
void |
registerListener() |
void |
registerListener(org.opendaylight.controller.md.sal.common.api.data.LogicalDatastoreType dsType,
org.opendaylight.controller.md.sal.binding.api.DataBroker db) |
protected void |
remove(ServicesInfoKey serviceKey,
BoundServices boundServiceOld,
List<BoundServices> boundServicesList) |
protected void |
update(ServicesInfoKey serviceKey,
org.opendaylight.yangtools.yang.binding.InstanceIdentifier<BoundServices> key,
BoundServices boundServiceOld,
BoundServices boundServiceNew,
List<BoundServices> boundServicesList) |
@Inject public FlowBasedServicesConfigListener(org.opendaylight.controller.md.sal.binding.api.DataBroker dataBroker, EntityOwnershipUtils entityOwnershipUtils, org.opendaylight.infrautils.jobcoordinator.JobCoordinator coordinator, FlowBasedServicesRendererFactoryResolver flowBasedServicesRendererFactoryResolver, InterfaceManagerCommonUtils interfaceManagerCommonUtils, InterfaceServiceRecoveryHandler interfaceServiceRecoveryHandler, org.opendaylight.serviceutils.srm.ServiceRecoveryRegistry serviceRecoveryRegistry)
protected org.opendaylight.yangtools.yang.binding.InstanceIdentifier<ServicesInfo> getWildCardPath()
public void registerListener()
registerListener
in interface org.opendaylight.serviceutils.srm.RecoverableListener
public void registerListener(org.opendaylight.controller.md.sal.common.api.data.LogicalDatastoreType dsType, org.opendaylight.controller.md.sal.binding.api.DataBroker db)
public void deregisterListener()
deregisterListener
in interface org.opendaylight.serviceutils.srm.RecoverableListener
@PreDestroy public void close()
public void onDataTreeChanged(@Nonnull Collection<org.opendaylight.controller.md.sal.binding.api.DataTreeModification<ServicesInfo>> collection)
onDataTreeChanged
in interface org.opendaylight.controller.md.sal.binding.api.DataTreeChangeListener<ServicesInfo>
protected void remove(@Nonnull ServicesInfoKey serviceKey, @Nonnull BoundServices boundServiceOld, List<BoundServices> boundServicesList)
protected void update(ServicesInfoKey serviceKey, org.opendaylight.yangtools.yang.binding.InstanceIdentifier<BoundServices> key, BoundServices boundServiceOld, BoundServices boundServiceNew, List<BoundServices> boundServicesList)
protected void add(ServicesInfoKey serviceKey, BoundServices boundServicesNew, List<BoundServices> boundServicesList)
Copyright © 2019 OpenDaylight. All rights reserved.