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$ } } }
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$ } } }