Package org.lilyproject.runtime

Examples of org.lilyproject.runtime.LilyRuntime.start()


            System.out.println(runtime.buildModel().moduleInfo(System.getProperty("lilyruntime.info.module")));
            System.exit(0);
        }

        try {
            runtime.start();
            Runtime.getRuntime().addShutdownHook(new Thread(new ShutdownHandler(runtime)));
            printStartedMessage();
        } catch (Throwable e) {
            e.printStackTrace();
            System.err.println("Startup failed. Will try to shutdown and exit.");
View Full Code Here


        settings.setModel(model);
        settings.setRepository(dummyRepository);
        settings.setConfManager(new ConfManagerImpl());

        LilyRuntime runtime = new LilyRuntime(settings);
        runtime.start();
        runtime.stop();

        // Test we can start the runtime a second time
        runtime = new LilyRuntime(settings);
        runtime.start();
View Full Code Here

        runtime.start();
        runtime.stop();

        // Test we can start the runtime a second time
        runtime = new LilyRuntime(settings);
        runtime.start();
        runtime.stop();

        // Same with connectors configured
        runtime = new LilyRuntime(settings);
        runtime.start();
View Full Code Here

        runtime.start();
        runtime.stop();

        // Same with connectors configured
        runtime = new LilyRuntime(settings);
        runtime.start();
        runtime.stop();

        // Test that we can't start the same runtime twice
        try {
            runtime.start();
View Full Code Here

        runtime.start();
        runtime.stop();

        // Test that we can't start the same runtime twice
        try {
            runtime.start();
            Assert.fail("Starting the same runtime instance twice should fail.");
        } catch (Exception e) {}

        // Test that we can't start if we don't set a repository in the config
        settings.setRepository(null);
View Full Code Here

        // Test that we can't start if we don't set a repository in the config
        settings.setRepository(null);
        runtime = new LilyRuntime(settings);
        try {
            runtime.start();
            Assert.fail("Starting runtime should fail if there is no artifact repository configured.");
        } catch (Exception e) {}
    }
}
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.