public FlowsStatisticsUpdateBuilder(FlowsStatisticsUpdate base) { this._flowAndStatisticsMapList = base.getFlowAndStatisticsMapList(); this._id = base.getId(); this._nodeConnector = base.getNodeConnector(); this._transactionId = base.getTransactionId(); this._moreReplies = base.isMoreReplies(); if (base instanceof FlowsStatisticsUpdateImpl) { FlowsStatisticsUpdateImpl _impl = (FlowsStatisticsUpdateImpl) base; this.augmentation = new HashMap<>(_impl.augmentation); } }
@Override public void onFlowsStatisticsUpdate(final FlowsStatisticsUpdate notification) { final ArrayList<FlowOnNode> adsalFlowsStatistics = new ArrayList<>(); final InstanceIdentifier<org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.nodes.Node> nodeRef = InstanceIdentifier.builder(Nodes.class) .child(org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.nodes.Node.class, new NodeKey(notification.getId())) .build(); final Node aDNode; try { aDNode = NodeMapping.toADNode(nodeRef); } catch (ConstructionException e) { LOG.warn("Failed to construct node for {}, ignoring it", notification.getId(), e); return; } for (final FlowAndStatisticsMapList flowStats : notification.getFlowAndStatisticsMapList()) { if (flowStats.getTableId() == 0) { adsalFlowsStatistics.add(InventoryAndReadAdapter.toFlowOnNode(flowStats, aDNode)); } } for (final IPluginOutReadService statsPublisher : getStatisticsPublisher()) { statsPublisher.nodeFlowStatisticsUpdated(aDNode, adsalFlowsStatistics); } updateTransactionCache(notification, notification.getId(), !notification.isMoreReplies()); }
@Override public void onFlowsStatisticsUpdate(final FlowsStatisticsUpdate notification) { final TransactionId transId = notification.getTransactionId(); final NodeId nodeId = notification.getId(); if ( ! isExpectedStatistics(transId, nodeId)) { LOG.debug("STAT-MANAGER - FlowsStatisticsUpdate: unregistred notification detect TransactionId {}", transId); if (notification.isMoreReplies()) { LOG.trace("Next notification for join txId {}", transId); return;
if (notif instanceof FlowsStatisticsUpdate) { final List<FlowAndStatisticsMapList> notifList = ((FlowsStatisticsUpdate) notif).getFlowAndStatisticsMapList(); if (notifList != null) { flowStats.addAll(notifList);
@Override public void onFlowsStatisticsUpdate(final FlowsStatisticsUpdate notification) { final TransactionId transId = notification.getTransactionId(); final NodeId nodeId = notification.getId(); if ( ! isExpectedStatistics(transId, nodeId)) { LOG.debug("STAT-MANAGER - FlowsStatisticsUpdate: unregistred notification detect TransactionId {}", transId); if (notification.isMoreReplies()) { LOG.trace("Next notification for join txId {}", transId); return;
if (notif instanceof FlowsStatisticsUpdate) { final List<FlowAndStatisticsMapList> notifList = ((FlowsStatisticsUpdate) notif).getFlowAndStatisticsMapList(); if (notifList != null) { flowStats.addAll(notifList);
if (other.getFlowAndStatisticsMapList() != null) { return false; } else if(!_flowAndStatisticsMapList.equals(other.getFlowAndStatisticsMapList())) { return false; if (other.getId() != null) { return false; } else if(!_id.equals(other.getId())) { return false; if (other.getNodeConnector() != null) { return false; } else if(!_nodeConnector.equals(other.getNodeConnector())) { return false; if (other.getTransactionId() != null) { return false; } else if(!_transactionId.equals(other.getTransactionId())) { return false; if (other.isMoreReplies() != null) { return false; } else if(!_moreReplies.equals(other.isMoreReplies())) { return false;
List<FlowAndStatisticsMapList> flowAndStatisticsMapList = flowsStatisticsUpdate.getFlowAndStatisticsMapList(); if (flowAndStatisticsMapList != null) { for (FlowAndStatisticsMapList flowAndStatistics : flowAndStatisticsMapList) {