Class AbstractListeningCommiter<T extends org.opendaylight.yangtools.yang.binding.DataObject>
java.lang.Object
org.opendaylight.openflowplugin.applications.frm.impl.AbstractListeningCommiter<T>
- All Implemented Interfaces:
AutoCloseable
,EventListener
,org.opendaylight.mdsal.binding.api.ClusteredDataTreeChangeListener<T>
,org.opendaylight.mdsal.binding.api.DataTreeChangeListener<T>
,ForwardingRulesCommiter<T>
,org.opendaylight.serviceutils.srm.RecoverableListener
- Direct Known Subclasses:
FlowForwarder
,GroupForwarder
,MeterForwarder
,TableForwarder
public abstract class AbstractListeningCommiter<T extends org.opendaylight.yangtools.yang.binding.DataObject>
extends Object
implements ForwardingRulesCommiter<T>, org.opendaylight.serviceutils.srm.RecoverableListener
AbstractChangeListner implemented basic
DataTreeModification
processing for flow node subDataObject (flows, groups and meters).-
Field Summary
Modifier and TypeFieldDescriptionprotected final org.opendaylight.mdsal.binding.api.DataBroker
-
Constructor Summary
ModifierConstructorDescriptionprotected
AbstractListeningCommiter
(ForwardingRulesManager provider, org.opendaylight.mdsal.binding.api.DataBroker dataBroker, ListenerRegistrationHelper registrationHelper) -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
void
protected abstract org.opendaylight.yangtools.yang.binding.InstanceIdentifier<T>
Method return wildCardPath for Listener registration and for identify the correct KeyInstanceIdentifier from data.void
onDataTreeChanged
(Collection<org.opendaylight.mdsal.binding.api.DataTreeModification<T>> changes) final void
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.opendaylight.mdsal.binding.api.DataTreeChangeListener
onInitialData
Methods inherited from interface org.opendaylight.openflowplugin.applications.frm.ForwardingRulesCommiter
add, createStaleMarkEntity, remove, removeWithResult, update
-
Field Details
-
dataBroker
protected final org.opendaylight.mdsal.binding.api.DataBroker dataBroker
-
-
Constructor Details
-
AbstractListeningCommiter
protected AbstractListeningCommiter(ForwardingRulesManager provider, org.opendaylight.mdsal.binding.api.DataBroker dataBroker, ListenerRegistrationHelper registrationHelper)
-
-
Method Details
-
onDataTreeChanged
public void onDataTreeChanged(Collection<org.opendaylight.mdsal.binding.api.DataTreeModification<T>> changes) - Specified by:
onDataTreeChanged
in interfaceorg.opendaylight.mdsal.binding.api.DataTreeChangeListener<T extends org.opendaylight.yangtools.yang.binding.DataObject>
-
registerListener
public final void registerListener()- Specified by:
registerListener
in interfaceorg.opendaylight.serviceutils.srm.RecoverableListener
-
deregisterListener
public void deregisterListener()- Specified by:
deregisterListener
in interfaceorg.opendaylight.serviceutils.srm.RecoverableListener
-
close
public void close()- Specified by:
close
in interfaceAutoCloseable
-
getWildCardPath
Method return wildCardPath for Listener registration and for identify the correct KeyInstanceIdentifier from data.
-