Class SimplifiedConfigListener
java.lang.Object
org.opendaylight.openflowplugin.applications.frsync.impl.AbstractFrmSyncListener<FlowCapableNode>
org.opendaylight.openflowplugin.applications.frsync.impl.SimplifiedConfigListener
- All Implemented Interfaces:
EventListener
,org.opendaylight.mdsal.binding.api.ClusteredDataTreeChangeListener<FlowCapableNode>
,org.opendaylight.mdsal.binding.api.DataTreeChangeListener<FlowCapableNode>
,NodeListener<FlowCapableNode>
Listens to config changes and delegates sync entry to
SyncReactor
.-
Constructor Summary
ConstructorsConstructorDescriptionSimplifiedConfigListener
(SyncReactor reactor, FlowCapableNodeSnapshotDao configSnapshot, FlowCapableNodeDao operationalDao) -
Method Summary
Modifier and TypeMethodDescriptionorg.opendaylight.mdsal.common.api.LogicalDatastoreType
dsType()
void
onDataTreeChanged
(@NonNull Collection<org.opendaylight.mdsal.binding.api.DataTreeModification<FlowCapableNode>> modifications) processNodeModification
(org.opendaylight.mdsal.binding.api.DataTreeModification<FlowCapableNode> modification) Update cache.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
-
Constructor Details
-
SimplifiedConfigListener
public SimplifiedConfigListener(SyncReactor reactor, FlowCapableNodeSnapshotDao configSnapshot, FlowCapableNodeDao operationalDao)
-
-
Method Details
-
onDataTreeChanged
public void onDataTreeChanged(@NonNull Collection<org.opendaylight.mdsal.binding.api.DataTreeModification<FlowCapableNode>> modifications) - Specified by:
onDataTreeChanged
in interfaceorg.opendaylight.mdsal.binding.api.DataTreeChangeListener<FlowCapableNode>
- Overrides:
onDataTreeChanged
in classAbstractFrmSyncListener<FlowCapableNode>
-
processNodeModification
protected Optional<com.google.common.util.concurrent.ListenableFuture<Boolean>> processNodeModification(org.opendaylight.mdsal.binding.api.DataTreeModification<FlowCapableNode> modification) Update cache. If operational data are present, choose appropriate data and start syncup. Otherwise skip incoming change.- Specified by:
processNodeModification
in classAbstractFrmSyncListener<FlowCapableNode>
-
dsType
public org.opendaylight.mdsal.common.api.LogicalDatastoreType dsType()- Specified by:
dsType
in classAbstractFrmSyncListener<FlowCapableNode>
-