color
This commit is contained in:
parent
1336765585
commit
29bf8efb01
@ -9,17 +9,17 @@ import org.apache.logging.log4j.Logger;
|
||||
public abstract class ADataObject implements Serializable {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
static final String KIND_KEY = "kind";
|
||||
static final String KIND_KEY = "kind";
|
||||
|
||||
final protected Logger logger = LogManager.getRootLogger();
|
||||
|
||||
private String name;
|
||||
private Map<String, Object> values;
|
||||
private String kind;
|
||||
private String kind;
|
||||
|
||||
public ADataObject(String name, String kind) {
|
||||
this.name = name;
|
||||
this.kind = kind;
|
||||
this.kind = kind;
|
||||
}
|
||||
|
||||
public void setValues(Map<String, Object> values) {
|
||||
@ -39,7 +39,11 @@ public abstract class ADataObject implements Serializable {
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
|
||||
public String getKind() {
|
||||
return this.kind;
|
||||
}
|
||||
|
||||
public String toString() {
|
||||
StringBuffer sb = new StringBuffer();
|
||||
sb.append("{\"name\":\"");
|
||||
|
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user