public ConfigServerBuilder setPort(final java.lang.Long value) { if (value != null) { checkPortRange(value); } this._port = value; return this; }
public ConfigServerBuilder addAugmentation(java.lang.Class<? extends Augmentation<org.opendaylight.yang.gen.v1.urn.ericsson.params.xml.ns.yang.ebgp.rev150901.bgp.ConfigServer>> augmentationType, Augmentation<org.opendaylight.yang.gen.v1.urn.ericsson.params.xml.ns.yang.ebgp.rev150901.bgp.ConfigServer> augmentation) { if (augmentation == null) { return removeAugmentation(augmentationType); } if (!(this.augmentation instanceof HashMap)) { this.augmentation = new HashMap<>(); } this.augmentation.put(augmentationType, augmentation); return this; }
public synchronized void startConfig(String bgpHost, int thriftPort) { InstanceIdentifier.InstanceIdentifierBuilder<ConfigServer> iib = InstanceIdentifier.builder(Bgp.class).child(ConfigServer.class); InstanceIdentifier<ConfigServer> iid = iib.build(); Ipv4Address ipAddr = new Ipv4Address(bgpHost); ConfigServer dto = new ConfigServerBuilder().setHost(ipAddr) .setPort((long) thriftPort).build(); update(iid, dto); }
private ConfigServerImpl(ConfigServerBuilder base) { this._host = base.getHost(); this._port = base.getPort(); 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.ericsson.params.xml.ns.yang.ebgp.rev150901.bgp.ConfigServer>>, Augmentation<org.opendaylight.yang.gen.v1.urn.ericsson.params.xml.ns.yang.ebgp.rev150901.bgp.ConfigServer>> e = base.augmentation.entrySet().iterator().next(); this.augmentation = Collections.<java.lang.Class<? extends Augmentation<org.opendaylight.yang.gen.v1.urn.ericsson.params.xml.ns.yang.ebgp.rev150901.bgp.ConfigServer>>, Augmentation<org.opendaylight.yang.gen.v1.urn.ericsson.params.xml.ns.yang.ebgp.rev150901.bgp.ConfigServer>>singletonMap(e.getKey(), e.getValue()); break; default : this.augmentation = new HashMap<>(base.augmentation); } }
public synchronized void startConfig(String bgpHost, int thriftPort) { InstanceIdentifier.InstanceIdentifierBuilder<ConfigServer> iib = InstanceIdentifier.builder(Bgp.class).child(ConfigServer.class); InstanceIdentifier<ConfigServer> iid = iib.build(); Ipv4Address ipAddr = new Ipv4Address(bgpHost); ConfigServer dto = new ConfigServerBuilder().setHost(ipAddr) .setPort((long) thriftPort).build(); update(iid, dto); }