public static String pluralize(Collection<?> c) { return pluralize(c.size()); }
public static String getDesc(Map<String,Integer> classificaton) { StringBuilder classificatons =new StringBuilder(11); for (Map.Entry<String, Integer> e : classificaton.entrySet()) { classificatons.append(e.getKey()); classificatons.append(": "); classificatons.append(e.getValue()); classificatons.append(" time"); classificatons.append(pluralize(e.getValue())); classificatons.append(", "); } return classificatons.toString(); } }
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 pluralize(Collection<?> c) { return pluralize(c.size()); }
public static String getDesc(Map<String,Integer> classificaton) { StringBuilder classificatons =new StringBuilder(11); for (Map.Entry<String, Integer> e : classificaton.entrySet()) { classificatons.append(e.getKey()); classificatons.append(": "); classificatons.append(e.getValue()); classificatons.append(" time"); classificatons.append(pluralize(e.getValue())); classificatons.append(", "); } return classificatons.toString(); } }
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 pluralize(Collection<?> c) { return pluralize(c.size()); }
public static String pluralize(Collection<?> c) { return pluralize(c.size()); }
public static String pluralize(Collection<?> c) { return pluralize(c.size()); }
public static String getDesc(Map<String,Integer> classificaton) { String s = ""; for (Map.Entry<String, Integer> e : classificaton.entrySet()) { s += e.getKey() + ": " + e.getValue() + " time" + pluralize(e.getValue()) + ", "; } return s; }
public static String getDesc(Map<String,Integer> classificaton) { StringBuilder classificatons =new StringBuilder(11); for (Map.Entry<String, Integer> e : classificaton.entrySet()) { classificatons.append(e.getKey()); classificatons.append(": "); classificatons.append(e.getValue()); classificatons.append(" time"); classificatons.append(pluralize(e.getValue())); classificatons.append(", "); } return classificatons.toString(); }
public static String getDesc(Map<String,Integer> classificaton) { StringBuilder classificatons =new StringBuilder(11); for (Map.Entry<String, Integer> e : classificaton.entrySet()) { classificatons.append(e.getKey()); classificatons.append(": "); classificatons.append(e.getValue()); classificatons.append(" time"); classificatons.append(pluralize(e.getValue())); classificatons.append(", "); } return classificatons.toString(); } }
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; }