142143144145146147148149150
for(QuorumServer s: qp.quorumPeers.values()){ ZKMBeanInfo p; if(qp.getId()==s.id) p=localPeerBean=new LocalPeerBean(qp); else p=new RemotePeerBean(s); MBeanRegistry.getInstance().register(p, quorumBean); } }