public RemoveEventDataBuilder setDpnId(final BigInteger value) { if (value != null) { checkDpnIdRange(value); } this._dpnId = value; return this; }
public RemoveEventData build() { return new RemoveEventDataImpl(this); }
public RemoveEventDataBuilder addAugmentation(java.lang.Class<? extends Augmentation<org.opendaylight.yang.gen.v1.urn.opendaylight.netvirt.l3vpn.rev130911.remove.dpn.event.RemoveEventData>> augmentationType, Augmentation<org.opendaylight.yang.gen.v1.urn.opendaylight.netvirt.l3vpn.rev130911.remove.dpn.event.RemoveEventData> augmentation) { if (augmentation == null) { return removeAugmentation(augmentationType); } if (!(this.augmentation instanceof HashMap)) { this.augmentation = new HashMap<>(); } this.augmentation.put(augmentationType, augmentation); return this; }
public RemoveEventDataBuilder(RemoveEventData base) { this._dpnId = base.getDpnId(); this._rd = base.getRd(); this._vpnName = base.getVpnName(); if (base instanceof RemoveEventDataImpl) { RemoveEventDataImpl impl = (RemoveEventDataImpl) base; if (!impl.augmentation.isEmpty()) { this.augmentation = new HashMap<>(impl.augmentation); } } else if (base instanceof AugmentationHolder) { @SuppressWarnings("unchecked") AugmentationHolder<org.opendaylight.yang.gen.v1.urn.opendaylight.netvirt.l3vpn.rev130911.remove.dpn.event.RemoveEventData> casted =(AugmentationHolder<org.opendaylight.yang.gen.v1.urn.opendaylight.netvirt.l3vpn.rev130911.remove.dpn.event.RemoveEventData>) base; if (!casted.augmentations().isEmpty()) { this.augmentation = new HashMap<>(casted.augmentations()); } } }
if (!Objects.equals(_dpnId, other.getDpnId())) { return false; if (!Objects.equals(_rd, other.getRd())) { return false; if (!Objects.equals(_vpnName, other.getVpnName())) { return false; if (!e.getValue().equals(other.getAugmentation(e.getKey()))) { return false;
void publishRemoveNotification(final BigInteger dpnId, final String vpnName, final String rd) { LOG.debug("Sending notification for remove dpn {} in vpn {} event ", dpnId, vpnName); RemoveEventData data = new RemoveEventDataBuilder().setVpnName(vpnName).setRd(rd).setDpnId(dpnId).build(); RemoveDpnEvent event = new RemoveDpnEventBuilder().setRemoveEventData(data).build(); final ListenableFuture<? extends Object> eventFuture = notificationPublishService.offerNotification(event); Futures.addCallback(eventFuture, new FutureCallback<Object>() { @Override public void onFailure(Throwable error) { LOG.warn("Error in notifying listeners for remove dpn {} in vpn {} event ", dpnId, vpnName, error); } @Override public void onSuccess(Object arg) { LOG.trace("Successful in notifying listeners for remove dpn {} in vpn {} event ", dpnId, vpnName); } }); }
private RemoveEventDataImpl(RemoveEventDataBuilder base) { this._dpnId = base.getDpnId(); this._rd = base.getRd(); this._vpnName = base.getVpnName(); switch (base.augmentation.size()) { case 0: this.augmentation = Collections.emptyMap(); break; case 1: final Map.Entry<java.lang.Class<? extends Augmentation<org.opendaylight.yang.gen.v1.urn.opendaylight.netvirt.l3vpn.rev130911.remove.dpn.event.RemoveEventData>>, Augmentation<org.opendaylight.yang.gen.v1.urn.opendaylight.netvirt.l3vpn.rev130911.remove.dpn.event.RemoveEventData>> e = base.augmentation.entrySet().iterator().next(); this.augmentation = Collections.<java.lang.Class<? extends Augmentation<org.opendaylight.yang.gen.v1.urn.opendaylight.netvirt.l3vpn.rev130911.remove.dpn.event.RemoveEventData>>, Augmentation<org.opendaylight.yang.gen.v1.urn.opendaylight.netvirt.l3vpn.rev130911.remove.dpn.event.RemoveEventData>>singletonMap(e.getKey(), e.getValue()); break; default : this.augmentation = new HashMap<>(base.augmentation); } }
@Override public void onRemoveDpnEvent(RemoveDpnEvent notification) { programLPortDispatcherFlowForScfToVpn(notification.getRemoveEventData().getDpnId(), notification.getRemoveEventData().getVpnName(), notification.getRemoveEventData().getRd(), NwConstants.DEL_FLOW); }
public void onRemoveDpnEvent(RemoveDpnEvent notification) { final String rd = eventData.getRd(); final String vpnName = eventData.getVpnName(); BigInteger dpnId = eventData.getDpnId();