Examples of Gnostic


Examples of org.rioproject.gnostic.Gnostic

        Assert.assertNull(thrown);

        File opstring = new File("src/test/opstring/artifactNotification.groovy");
        Assert.assertTrue(opstring.exists());
        testManager.deploy(opstring);
        Gnostic g = (Gnostic)testManager.waitForService(Gnostic.class);

        try {
            g.setScannerInterval(5);
            Assert.assertEquals("Scanner Interval expected to be 5 seconds", 5, g.getScannerInterval());
        } catch (Throwable e) {
            e.printStackTrace();
            thrown = e;
        }
        Assert.assertNull(thrown);
View Full Code Here

Examples of org.rioproject.gnostic.Gnostic

        Assert.assertTrue(opstring.exists());
        OperationalStringManager mgr = testManager.deploy(opstring);
        testManager.waitForDeployment(mgr);
        TestService test = (TestService)testManager.waitForService("Test");
        thrown = null;
        Gnostic g = (Gnostic)testManager.waitForService(Gnostic.class);
        Util.waitForRule(g, "CounterNotification");
        for(int i=0; i<15; i++) {
            try {
                test.sendNotify();
                Util.sleep(1000);
View Full Code Here

Examples of org.rioproject.gnostic.Gnostic

        Assert.assertNotNull(testManager);
        Assert.assertNotNull(testManager);
        File opstring = new File("src/test/opstring/executionNodeService.groovy");
        Assert.assertTrue(opstring.exists());
        testManager.deploy(opstring);
        Gnostic g = (Gnostic)testManager.waitForService(Gnostic.class);
        Util.waitForRule(g, "SLAKsessions");
        ExecutionNodeService test = (ExecutionNodeService)testManager.waitForService("ExecutionNodeService");

        for(int i=0; i<15; i++) {
            try {
View Full Code Here

Examples of org.rioproject.gnostic.Gnostic

    }

    void doTest(TestManager testManager, File opstring) {
        Assert.assertNotNull(testManager);
        testManager.deploy(opstring);
        Gnostic g = (Gnostic)testManager.waitForService(Gnostic.class);
        File file = new File(System.getProperty("java.io.tmpdir"), getOutputFileName());
        if(file.exists())
            if(file.delete())
                System.out.println("Removed "+file.getName()+", start with clean slate");
        Util.waitForRule(g, "SpaceUtilization");
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.