public GroupDescStatsUpdatedBuilder(GroupDescStatsUpdated base) { this._groupDescStats = base.getGroupDescStats(); this._id = base.getId(); this._nodeConnector = base.getNodeConnector(); this._transactionId = base.getTransactionId(); this._moreReplies = base.isMoreReplies(); if (base instanceof GroupDescStatsUpdatedImpl) { GroupDescStatsUpdatedImpl _impl = (GroupDescStatsUpdatedImpl) base; this.augmentation = new HashMap<>(_impl.augmentation); } }
@Override public void onGroupDescStatsUpdated(final GroupDescStatsUpdated notification) { final TransactionId transId = notification.getTransactionId(); final NodeId nodeId = notification.getId(); if ( ! isExpectedStatistics(transId, nodeId)) { LOG.debug("Unregistred notification detect TransactionId {}", transId); if (notification.isMoreReplies()) { return;
private void statGroupDescCommit(final Optional<TransactionCacheContainer<?>> txContainer, final ReadWriteTransaction tx, final InstanceIdentifier<FlowCapableNode> fNodeIdent, final List<GroupKey> existGroupKeys) { Preconditions.checkNotNull(existGroupKeys); Preconditions.checkNotNull(txContainer); Preconditions.checkNotNull(fNodeIdent); Preconditions.checkNotNull(tx); final List<? extends TransactionAware> cacheNotifs = txContainer.get().getNotifications(); for (final TransactionAware notif : cacheNotifs) { if ( ! (notif instanceof GroupDescStatsUpdated)) { break; } final List<GroupDescStats> groupStats = ((GroupDescStatsUpdated) notif).getGroupDescStats(); if (groupStats == null) { break; } for (final GroupDescStats group : groupStats) { if (group.getGroupId() != null) { final GroupBuilder groupBuilder = new GroupBuilder(group); final GroupKey groupKey = new GroupKey(group.getGroupId()); final InstanceIdentifier<Group> groupRef = fNodeIdent.child(Group.class,groupKey); final NodeGroupDescStatsBuilder groupDesc= new NodeGroupDescStatsBuilder(); groupDesc.setGroupDesc(new GroupDescBuilder(group).build()); //Update augmented data groupBuilder.addAugmentation(NodeGroupDescStats.class, groupDesc.build()); existGroupKeys.remove(groupKey); tx.put(LogicalDatastoreType.OPERATIONAL, groupRef, groupBuilder.build()); } } } }
@Override public void onGroupDescStatsUpdated(final GroupDescStatsUpdated notification) { final TransactionId transId = notification.getTransactionId(); final NodeId nodeId = notification.getId(); if ( ! isExpectedStatistics(transId, nodeId)) { LOG.debug("Unregistred notification detect TransactionId {}", transId); if (notification.isMoreReplies()) { return;
private void statGroupDescCommit(final Optional<TransactionCacheContainer<?>> txContainer, final ReadWriteTransaction tx, final InstanceIdentifier<FlowCapableNode> fNodeIdent, final List<GroupKey> existGroupKeys) { Preconditions.checkNotNull(existGroupKeys); Preconditions.checkNotNull(txContainer); Preconditions.checkNotNull(fNodeIdent); Preconditions.checkNotNull(tx); final List<? extends TransactionAware> cacheNotifs = txContainer.get().getNotifications(); for (final TransactionAware notif : cacheNotifs) { if ( ! (notif instanceof GroupDescStatsUpdated)) { break; } final List<GroupDescStats> groupStats = ((GroupDescStatsUpdated) notif).getGroupDescStats(); if (groupStats == null) { break; } for (final GroupDescStats group : groupStats) { if (group.getGroupId() != null) { final GroupBuilder groupBuilder = new GroupBuilder(group); final GroupKey groupKey = new GroupKey(group.getGroupId()); final InstanceIdentifier<Group> groupRef = fNodeIdent.child(Group.class,groupKey); final NodeGroupDescStatsBuilder groupDesc= new NodeGroupDescStatsBuilder(); groupDesc.setGroupDesc(new GroupDescBuilder(group).build()); //Update augmented data groupBuilder.addAugmentation(NodeGroupDescStats.class, groupDesc.build()); existGroupKeys.remove(groupKey); tx.put(LogicalDatastoreType.OPERATIONAL, groupRef, groupBuilder.build()); } } } }
if (other.getGroupDescStats() != null) { return false; } else if(!_groupDescStats.equals(other.getGroupDescStats())) { 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;