This commit is contained in:
Wolfgang Hottgenroth 2020-09-08 14:39:11 +02:00
parent 1336765585
commit 29bf8efb01
Signed by: wn
GPG Key ID: 6C1E5E531E0D5D7F
2 changed files with 11 additions and 4 deletions

View File

@ -40,6 +40,10 @@ public abstract class ADataObject implements Serializable {
return name;
}
public String getKind() {
return this.kind;
}
public String toString() {
StringBuffer sb = new StringBuffer();
sb.append("{\"name\":\"");

View File

@ -37,6 +37,9 @@ public class DummyDequeuer extends Thread {
if (o.hasKey(ERROR_RATIO_KEY) && ((Double)o.getValues().get(ERROR_RATIO_KEY)) > 0.25) {
System.out.print(ANSI_RED);
}
if ("Statistics".equals(o.getKind())) {
System.out.print(ANSI_BLUE);
}
System.out.print("DummyDequeuer: " + o.toString());
System.out.println(ANSI_RESET);
} catch (InterruptedException e) {