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 basicDataTreeModification
processing for flow node subDataObject (flows, groups and meters).
-
-
Field Summary
Fields Modifier and Type Field Description protected org.opendaylight.mdsal.binding.api.DataBroker
dataBroker
protected org.opendaylight.yangtools.concepts.ListenerRegistration<AbstractListeningCommiter>
listenerRegistration
protected ListenerRegistrationHelper
registrationHelper
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractListeningCommiter(ForwardingRulesManager provider, org.opendaylight.mdsal.binding.api.DataBroker dataBroker, ListenerRegistrationHelper registrationHelper)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract org.opendaylight.yangtools.yang.binding.InstanceIdentifier<T>
getWildCardPath()
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)
void
registerListener()
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.lang.AutoCloseable
close
-
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 Detail
-
dataBroker
protected final org.opendaylight.mdsal.binding.api.DataBroker dataBroker
-
registrationHelper
protected final ListenerRegistrationHelper registrationHelper
-
listenerRegistration
protected org.opendaylight.yangtools.concepts.ListenerRegistration<AbstractListeningCommiter> listenerRegistration
-
-
Constructor Detail
-
AbstractListeningCommiter
protected AbstractListeningCommiter(ForwardingRulesManager provider, org.opendaylight.mdsal.binding.api.DataBroker dataBroker, ListenerRegistrationHelper registrationHelper)
-
-
Method Detail
-
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
-
getWildCardPath
protected abstract org.opendaylight.yangtools.yang.binding.InstanceIdentifier<T> getWildCardPath()
Method return wildCardPath for Listener registration and for identify the correct KeyInstanceIdentifier from data.
-
-