@Override public void onDataTreeChanged(final Collection<DataTreeModification<Node>> changes) { logger.info("onDataTreeChanged called"); for (final DataTreeModification<Node> change : changes) { final DataObjectModification<Node> changeDiff = change.getRootNode(); if (changeDiff.getModificationType().equals( org.opendaylight.controller.md.sal.binding.api.DataObjectModification.ModificationType.SUBTREE_MODIFIED)) { logger.info("There is a sub-tree modified operation performed"); extractOpenFlowStatistics(changeDiff.getDataAfter()); } } }
@Override public void onDataTreeChanged(Collection<DataTreeModification<T>> changes) { changes.forEach(modif -> { DataObjectModification<T> rootNode = modif.getRootNode(); ModificationType modificationType = rootNode.getModificationType(); if (modificationType == modificationForFutureSet) { LOG.debug("{} in OPER DS: {}", modificationType.name(), iid.getRootIdentifier()); unregisterOnTrue(future.set(null)); } }); }
final Endpoint newEp = change.getRootNode().getDataAfter(); DataObjectModification<Location> loc = change.getRootNode().getModifiedChildContainer(Location.class); if (loc != null && loc.getModificationType().equals(ModificationType.WRITE)) { if (fabricCtx.getFabricId().equals(newEp.getOwnFabric())) { Futures.addCallback(fabricCtx.executor.submit(new Callable<Void>() {
break; if (!DataObjectModification.ModificationType.DELETE.equals( modifiedChildContainer.getModificationType())) subListeners.forEach(l -> {
break; if (!DataObjectModification.ModificationType.DELETE.equals( modifiedChildContainer.getModificationType())) subListeners.forEach(l -> {