public String followerInfo() { StringBuilder sb = new StringBuilder(); for (LearnerHandler handler : leader.getLearners()) { sb.append(handler.toString()).append("\n"); } return sb.toString(); }
static public void logQuorumPacket(Logger log, long mask, char direction, QuorumPacket qp) { if (isTraceEnabled(log, mask)) { logTraceMessage(log, mask, direction + " " + LearnerHandler.packetToString(qp)); } }
public String followerInfo() { StringBuilder sb = new StringBuilder(); for (LearnerHandler handler : leader.learners) { sb.append(handler.toString()).append("\n"); } return sb.toString(); }