public ConfigServerBuilder(ConfigServer base) { this._host = base.getHost(); this._port = base.getPort(); if (base instanceof ConfigServerImpl) { ConfigServerImpl impl = (ConfigServerImpl) 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.ericsson.params.xml.ns.yang.ebgp.rev150901.bgp.ConfigServer> casted =(AugmentationHolder<org.opendaylight.yang.gen.v1.urn.ericsson.params.xml.ns.yang.ebgp.rev150901.bgp.ConfigServer>) base; if (!casted.augmentations().isEmpty()) { this.augmentation = new HashMap<>(casted.augmentations()); } } }
if (!Objects.equals(_host, other.getHost())) { return false; if (!Objects.equals(_port, other.getPort())) { return false; if (!e.getValue().equals(other.getAugmentation(e.getKey()))) { return false;
public static String getConfigHost() { if (config == null) { return cHostStartup; } ConfigServer ts = config.getConfigServer(); return (ts == null ? cHostStartup : ts.getHost().getValue()); }
public static int getConfigPort() { if (config == null) { return Integer.parseInt(cPortStartup); } ConfigServer ts = config.getConfigServer(); return (ts == null ? Integer.parseInt(cPortStartup) : ts.getPort().intValue()); }
public static String getConfigHost() { if (config == null) { return cHostStartup; } ConfigServer ts = config.getConfigServer(); return (ts == null ? cHostStartup : ts.getHost().getValue()); }
public static int getConfigPort() { if (config == null) { return Integer.parseInt(cPortStartup); } ConfigServer ts = config.getConfigServer(); return (ts == null ? Integer.parseInt(cPortStartup) : ts.getPort().intValue()); }
protected synchronized void add(InstanceIdentifier<ConfigServer> iid, ConfigServer val) { LOG.debug("received bgp connect config host {}", val.getHost().getValue()); try { initer.await(); } catch (Exception e) { } LOG.debug("issueing bgp router connect to host {}", val.getHost().getValue()); synchronized(BgpConfigurationManager.this) { boolean res = bgpRouter.connect(val.getHost().getValue(), val.getPort().intValue()); if (!res) { LOG.error(yangObj + "Add failed; "+addWarn); } } }
protected synchronized void add(InstanceIdentifier<ConfigServer> iid, ConfigServer val) { LOG.trace("received bgp connect config host {}", val.getHost().getValue()); if (ignoreClusterDcnEventForFollower()) { return; } try { initer.await(); } catch (Exception e) { } LOG.debug("issueing bgp router connect to host {}", val.getHost().getValue()); synchronized (BgpConfigurationManager.this) { boolean res = bgpRouter.connect(val.getHost().getValue(), val.getPort().intValue()); if (!res) { LOG.error(yangObj + "Add failed; " + addWarn); } } }