Class FlowBasedServicesConfigListener
- java.lang.Object
-
- org.opendaylight.genius.interfacemanager.servicebindings.flowbased.listeners.FlowBasedServicesConfigListener
-
- All Implemented Interfaces:
java.util.EventListener
,org.opendaylight.mdsal.binding.api.ClusteredDataTreeChangeListener<ServicesInfo>
,org.opendaylight.mdsal.binding.api.DataTreeChangeListener<ServicesInfo>
,org.opendaylight.serviceutils.srm.RecoverableListener
@Singleton public class FlowBasedServicesConfigListener extends java.lang.Object implements org.opendaylight.mdsal.binding.api.ClusteredDataTreeChangeListener<ServicesInfo>, org.opendaylight.serviceutils.srm.RecoverableListener
-
-
Constructor Summary
Constructors Constructor Description FlowBasedServicesConfigListener(org.opendaylight.mdsal.binding.api.DataBroker dataBroker, EntityOwnershipUtils entityOwnershipUtils, org.opendaylight.infrautils.jobcoordinator.JobCoordinator coordinator, FlowBasedServicesRendererFactoryResolver flowBasedServicesRendererFactoryResolver, InterfaceManagerCommonUtils interfaceManagerCommonUtils, InterfaceServiceRecoveryHandler interfaceServiceRecoveryHandler, org.opendaylight.serviceutils.srm.ServiceRecoveryRegistry serviceRecoveryRegistry)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
add(ServicesInfoKey serviceKey, BoundServices boundServicesNew, java.util.List<BoundServices> boundServicesList)
void
close()
void
deregisterListener()
protected org.opendaylight.yangtools.yang.binding.InstanceIdentifier<ServicesInfo>
getWildCardPath()
void
onDataTreeChanged(@NonNull java.util.Collection<org.opendaylight.mdsal.binding.api.DataTreeModification<ServicesInfo>> collection)
void
registerListener()
void
registerListener(org.opendaylight.mdsal.common.api.LogicalDatastoreType dsType, org.opendaylight.mdsal.binding.api.DataBroker db)
protected void
remove(@NonNull ServicesInfoKey serviceKey, @NonNull BoundServices boundServiceOld, java.util.List<BoundServices> boundServicesList)
protected void
update(ServicesInfoKey serviceKey, org.opendaylight.yangtools.yang.binding.InstanceIdentifier<BoundServices> key, BoundServices boundServiceOld, BoundServices boundServiceNew, java.util.List<BoundServices> boundServicesList)
-
-
-
Constructor Detail
-
FlowBasedServicesConfigListener
@Inject public FlowBasedServicesConfigListener(org.opendaylight.mdsal.binding.api.DataBroker dataBroker, EntityOwnershipUtils entityOwnershipUtils, org.opendaylight.infrautils.jobcoordinator.JobCoordinator coordinator, FlowBasedServicesRendererFactoryResolver flowBasedServicesRendererFactoryResolver, InterfaceManagerCommonUtils interfaceManagerCommonUtils, InterfaceServiceRecoveryHandler interfaceServiceRecoveryHandler, org.opendaylight.serviceutils.srm.ServiceRecoveryRegistry serviceRecoveryRegistry)
-
-
Method Detail
-
getWildCardPath
protected org.opendaylight.yangtools.yang.binding.InstanceIdentifier<ServicesInfo> getWildCardPath()
-
registerListener
public void registerListener()
- Specified by:
registerListener
in interfaceorg.opendaylight.serviceutils.srm.RecoverableListener
-
registerListener
public void registerListener(org.opendaylight.mdsal.common.api.LogicalDatastoreType dsType, org.opendaylight.mdsal.binding.api.DataBroker db)
-
deregisterListener
public void deregisterListener()
- Specified by:
deregisterListener
in interfaceorg.opendaylight.serviceutils.srm.RecoverableListener
-
close
@PreDestroy public void close()
-
onDataTreeChanged
public void onDataTreeChanged(@NonNull java.util.Collection<org.opendaylight.mdsal.binding.api.DataTreeModification<ServicesInfo>> collection)
- Specified by:
onDataTreeChanged
in interfaceorg.opendaylight.mdsal.binding.api.DataTreeChangeListener<ServicesInfo>
-
remove
protected void remove(@NonNull ServicesInfoKey serviceKey, @NonNull BoundServices boundServiceOld, java.util.List<BoundServices> boundServicesList)
-
update
protected void update(ServicesInfoKey serviceKey, org.opendaylight.yangtools.yang.binding.InstanceIdentifier<BoundServices> key, BoundServices boundServiceOld, BoundServices boundServiceNew, java.util.List<BoundServices> boundServicesList)
-
add
protected void add(ServicesInfoKey serviceKey, BoundServices boundServicesNew, java.util.List<BoundServices> boundServicesList)
-
-