Package net.xeoh.plugins.diagnosis.local

Examples of net.xeoh.plugins.diagnosis.local.Diagnosis.channel()


            @Override
            public void stateChanged(STATE state) {
                System.out.println("STATE CJAMGE" + state);
            }
        });
        diagnosis.channel(TestChannel.class).status(3000);
        diagnosis.channel(TestChannel.class).status(100);

        //D2 d;
        //diagnosis.status(URI.create(TestChannel.class, "xxx"), 300);
        //diagnosis.channel(LoggingChannel1.class).status("start/x");
View Full Code Here


            public void stateChanged(STATE state) {
                System.out.println("STATE CJAMGE" + state);
            }
        });
        diagnosis.channel(TestChannel.class).status(3000);
        diagnosis.channel(TestChannel.class).status(100);

        //D2 d;
        //diagnosis.status(URI.create(TestChannel.class, "xxx"), 300);
        //diagnosis.channel(LoggingChannel1.class).status("start/x");
View Full Code Here

       
       
        // Q1: How does the condition access diagnosis-internal functions/variables?
        // Q2: How do we associate conditions with messages / remedies / ...?
        // Q3: Who fires *when* and *how* and triggers *what* when a condition is met?
        diagnosis.channel(LoggingChannel1.class).status("Ending Test.");    
    }

}
View Full Code Here

     */
    @Test
    public void benchmark() {
        Assert.assertNotNull(this.pm);
        final Diagnosis diagnosis = this.pm.getPlugin(Diagnosis.class);
        diagnosis.channel(LoggingChannel1.class).status("XXX");

    }

}
View Full Code Here

            // Check if the diagnosis is already there
            final Diagnosis diag = this.pluginManager.getDiagnosis();
            if(diag==null) return;
           
            // If yes, get the main channel
            this.diagnosis = diag.channel(SpawnerTracer.class);
        }
       
        this.diagnosis.status(message, options);
    }
}
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.