quorumBean=new QuorumBean(qp);
MBeanRegistry.getInstance().register(quorumBean, null);
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);
}
}