diagnosis.channel(TestChannel.class).status(100);
diagnosis.channel(TestChannel.class).status(3000);
diagnosis.channel(LoggingChannel1.class).status("Initializing Status");
DiagnosisUtil util = new DiagnosisUtil(diagnosis);
util.registerMonitors(new DiagnosisMonitor<Serializable>() {
@Override
public void onStatusChange(DiagnosisStatus<Serializable> status) {
if(status.getChannel().equals(TestChannel.class)) System.out.println("TC");
System.out.println(">>> " + status.getValue());
}
}, TestChannel.class, LoggingChannel1.class);
diagnosis.channel(TestChannel.class).status(6667);
diagnosis.channel(TestChannel.class).status(100);
util.registerCondition(new TwoStateMatcherAND() {
/** */
@Override
protected void setupMatcher() {
match(TestChannel.class, new Is(100));
match(LoggingChannel1.class, new Contains("xtatus"));