/** * Get description of this replica for error/debug logging purposes. * * @return description of this replica for error/debug logging purposes. */ protected String describeForLog() { return getName(); }
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$ } } }
/** * Get description of this replica for error/debug logging purposes. * * @return description of this replica for error/debug logging purposes. */ protected String describeForLog() { return getName(); }
/** @return description of this replica for error/debug logging purposes. */ protected String describeForLog() { return getName(); }
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$ } } }