public BrokerInfo copy() { BrokerInfo copy = new BrokerInfo(); copy(copy); return copy; }
@Override public synchronized void addBroker(Connection connection, BrokerInfo info) { BrokerInfo existing = brokerInfos.get(info.getBrokerId()); if (existing == null) { existing = info.copy(); existing.setPeerBrokerInfos(null); brokerInfos.put(info.getBrokerId(), existing); } existing.incrementRefCount(); LOG.debug("{} addBroker: {} brokerInfo size: {}", new Object[]{ getBrokerName(), info.getBrokerName(), brokerInfos.size() }); addBrokerInClusterUpdate(info); }
BrokerInfo info = connector.getBrokerInfo().copy(); if (connector.isUpdateClusterClients()) { info.setPeerBrokerInfos(this.broker.getPeerBrokerInfos());
public BrokerInfo copy() { BrokerInfo copy = new BrokerInfo(); copy(copy); return copy; }
public BrokerInfo copy() { BrokerInfo copy = new BrokerInfo(); copy(copy); return copy; }
public BrokerInfo copy() { BrokerInfo copy = new BrokerInfo(); copy(copy); return copy; }
public BrokerInfo copy() { BrokerInfo copy = new BrokerInfo(); copy(copy); return copy; }
@Override public synchronized void addBroker(Connection connection, BrokerInfo info) { BrokerInfo existing = brokerInfos.get(info.getBrokerId()); if (existing == null) { existing = info.copy(); existing.setPeerBrokerInfos(null); brokerInfos.put(info.getBrokerId(), existing); } existing.incrementRefCount(); LOG.debug("{} addBroker: {} brokerInfo size: {}", new Object[]{ getBrokerName(), info.getBrokerName(), brokerInfos.size() }); addBrokerInClusterUpdate(info); }
@Override public synchronized void addBroker(Connection connection, BrokerInfo info) { BrokerInfo existing = brokerInfos.get(info.getBrokerId()); if (existing == null) { existing = info.copy(); existing.setPeerBrokerInfos(null); brokerInfos.put(info.getBrokerId(), existing); } existing.incrementRefCount(); LOG.debug("{} addBroker: {} brokerInfo size: {}", new Object[]{ getBrokerName(), info.getBrokerName(), brokerInfos.size() }); addBrokerInClusterUpdate(info); }
@Override public synchronized void addBroker(Connection connection, BrokerInfo info) { BrokerInfo existing = brokerInfos.get(info.getBrokerId()); if (existing == null) { existing = info.copy(); existing.setPeerBrokerInfos(null); brokerInfos.put(info.getBrokerId(), existing); } existing.incrementRefCount(); LOG.debug("{} addBroker: {} brokerInfo size: {}", new Object[]{ getBrokerName(), info.getBrokerName(), brokerInfos.size() }); addBrokerInClusterUpdate(info); }
@Override public synchronized void addBroker(Connection connection, BrokerInfo info) { BrokerInfo existing = brokerInfos.get(info.getBrokerId()); if (existing == null) { existing = info.copy(); existing.setPeerBrokerInfos(null); brokerInfos.put(info.getBrokerId(), existing); } existing.incrementRefCount(); LOG.debug(getBrokerName() + " addBroker:" + info.getBrokerName() + " brokerInfo size : " + brokerInfos.size()); addBrokerInClusterUpdate(); }
BrokerInfo info = connector.getBrokerInfo().copy(); if (connector.isUpdateClusterClients()) { info.setPeerBrokerInfos(this.broker.getPeerBrokerInfos());
BrokerInfo info = connector.getBrokerInfo().copy(); if (connector.isUpdateClusterClients()) { info.setPeerBrokerInfos(this.broker.getPeerBrokerInfos());
BrokerInfo info = connector.getBrokerInfo().copy(); if (connector.isUpdateClusterClients()) { info.setPeerBrokerInfos(this.broker.getPeerBrokerInfos());
BrokerInfo info = connector.getBrokerInfo().copy(); if (connector.isUpdateClusterClients()) { info.setPeerBrokerInfos(this.broker.getPeerBrokerInfos());