public RetriesExhaustedWithDetailsException(List<Throwable> exceptions, List<Row> actions, List<String> hostnameAndPort) { super("Failed " + exceptions.size() + " action" + pluralize(exceptions) + ": " + getDesc(exceptions, actions, hostnameAndPort)); this.exceptions = exceptions; this.actions = actions; this.hostnameAndPort = hostnameAndPort; }
public static String getDesc(List<Throwable> exceptions, List<? extends Row> actions, List<String> hostnamePort) { String s = getDesc(classifyExs(exceptions)); StringBuilder addrs = new StringBuilder(s); addrs.append("servers with issues: "); Set<String> uniqAddr = new HashSet<>(hostnamePort); for (String addr : uniqAddr) { addrs.append(addr).append(", "); } return uniqAddr.isEmpty() ? addrs.toString() : addrs.substring(0, addrs.length() - 2); }
public RetriesExhaustedWithDetailsException(List<Throwable> exceptions, List<Row> actions, List<String> hostnameAndPort) { super("Failed " + exceptions.size() + " action" + pluralize(exceptions) + ": " + getDesc(exceptions, actions, hostnameAndPort)); this.exceptions = exceptions; this.actions = actions; this.hostnameAndPort = hostnameAndPort; }
public static String getDesc(List<Throwable> exceptions, List<? extends Row> actions, List<String> hostnamePort) { String s = getDesc(classifyExs(exceptions)); StringBuilder addrs = new StringBuilder(s); addrs.append("servers with issues: "); Set<String> uniqAddr = new HashSet<>(hostnamePort); for (String addr : uniqAddr) { addrs.append(addr).append(", "); } return uniqAddr.isEmpty() ? addrs.toString() : addrs.substring(0, addrs.length() - 2); }
public RetriesExhaustedWithDetailsException(List<Throwable> exceptions, List<Row> actions, List<String> hostnameAndPort) { super("Failed " + exceptions.size() + " action" + pluralize(exceptions) + ": " + getDesc(exceptions, actions, hostnameAndPort)); this.exceptions = exceptions; this.actions = actions; this.hostnameAndPort = hostnameAndPort; }
public RetriesExhaustedWithDetailsException(List<Throwable> exceptions, List<Row> actions, List<String> hostnameAndPort) { super("Failed " + exceptions.size() + " action" + pluralize(exceptions) + ": " + getDesc(exceptions, actions, hostnameAndPort)); this.exceptions = exceptions; this.actions = actions; this.hostnameAndPort = hostnameAndPort; }
public RetriesExhaustedWithDetailsException(List<Throwable> exceptions, List<Row> actions, List<String> hostnameAndPort) { super("Failed " + exceptions.size() + " action" + pluralize(exceptions) + ": " + getDesc(exceptions, actions, hostnameAndPort)); this.exceptions = exceptions; this.actions = actions; this.hostnameAndPort = hostnameAndPort; }
public static String getDesc(List<Throwable> exceptions, List<Row> actions, List<String> hostnamePort) { String s = getDesc(classifyExs(exceptions)); s += "servers with issues: "; Set<String> uniqAddr = new HashSet<String>(); uniqAddr.addAll(hostnamePort); for(String addr : uniqAddr) { s += addr + ", "; } return s; }
public static String getDesc(List<Throwable> exceptions, List<? extends Row> actions, List<String> hostnamePort) { String s = getDesc(classifyExs(exceptions)); StringBuilder addrs = new StringBuilder(s); addrs.append("servers with issues: "); Set<String> uniqAddr = new HashSet<>(); uniqAddr.addAll(hostnamePort); for (String addr : uniqAddr) { addrs.append(addr).append(", "); } return uniqAddr.isEmpty() ? addrs.toString() : addrs.substring(0, addrs.length() - 2); }
public static String getDesc(List<Throwable> exceptions, List<? extends Row> actions, List<String> hostnamePort) { String s = getDesc(classifyExs(exceptions)); StringBuilder addrs = new StringBuilder(s); addrs.append("servers with issues: "); Set<String> uniqAddr = new HashSet<String>(); uniqAddr.addAll(hostnamePort); for(String addr : uniqAddr) { addrs.append(addr).append(", "); } return s; }