List<KetchReplica> f = new ArrayList<>(5); for (KetchReplica r : replicas) { switch (r.getParticipation()) { case FULL: v.add(r);
private static void debug(StringBuilder b, ReplicaSnapshot s) { KetchReplica replica = s.getReplica(); debug(b, replica.getName(), s.getAccepted(), s.getCommitted()); b.append(String.format(" %-8s %s", //$NON-NLS-1$ replica.getParticipation(), s.getState())); if (s.getState() == OFFLINE) { String err = s.getErrorMessage(); if (err != null) { b.append(" (").append(err).append(')'); //$NON-NLS-1$ } } }
if (replica.getParticipation() == FOLLOWER_ONLY) {
List<KetchReplica> f = new ArrayList<>(5); for (KetchReplica r : replicas) { switch (r.getParticipation()) { case FULL: v.add(r);
private static void debug(StringBuilder b, ReplicaSnapshot s) { KetchReplica replica = s.getReplica(); debug(b, replica.getName(), s.getAccepted(), s.getCommitted()); b.append(String.format(" %-8s %s", //$NON-NLS-1$ replica.getParticipation(), s.getState())); if (s.getState() == OFFLINE) { String err = s.getErrorMessage(); if (err != null) { b.append(" (").append(err).append(')'); //$NON-NLS-1$ } } }
private static void debug(StringBuilder b, ReplicaSnapshot s) { KetchReplica replica = s.getReplica(); debug(b, replica.getName(), s.getAccepted(), s.getCommitted()); b.append(String.format(" %-8s %s", //$NON-NLS-1$ replica.getParticipation(), s.getState())); if (s.getState() == OFFLINE) { String err = s.getErrorMessage(); if (err != null) { b.append(" (").append(err).append(')'); //$NON-NLS-1$ } } }
List<KetchReplica> f = new ArrayList<>(5); for (KetchReplica r : replicas) { switch (r.getParticipation()) { case FULL: v.add(r);
if (replica.getParticipation() == FOLLOWER_ONLY) {
if (replica.getParticipation() == FOLLOWER_ONLY) {