public NodeConfig(final NodeConfig other) { this.addrs = new ArrayList<>(other.getAddrs()); this.port = other.getPort(); this.connAttemptsLimit = other.getConnAttemptsLimit(); }
public NetConfig(final NetConfig other) { this.timeoutMilliSec = other.getTimeoutMilliSec(); this.reuseAddr = other.getReuseAddr(); this.keepAlive = other.getKeepAlive(); this.tcpNoDelay = other.getTcpNoDelay(); this.linger = other.getLinger(); this.bindBacklogSize = other.getBindBacklogSize(); this.interestOpQueued = other.getInterestOpQueued(); this.rcvBuf = new SizeInBytes(other.getRcvBuf()); this.sndBuf = new SizeInBytes(other.getSndBuf()); this.ioRatio = other.getIoRatio(); this.transport = other.getTransport(); this.ssl = other.getSsl(); this.httpConfig = new HttpConfig(other.getHttpConfig()); this.nodeConfig = new NodeConfig(other.getNodeConfig()); } }
storageNodePort = nodeConfig.getPort(); connAttemptsLimit = nodeConfig.getConnAttemptsLimit(); final String t[] = nodeConfig.getAddrs().toArray(new String[]{}); storageNodeAddrs = new String[t.length]; String n;