Package org.lilyproject.runtime

Examples of org.lilyproject.runtime.LilyRuntimeSettings


    public void start() throws Exception {
        // This disable the HBaseConnectionDisposer in Lily which deletes HBase connections on shutdown
        System.setProperty("lily.hbase.deleteConnections", "false");

        LilyRuntimeSettings settings = new LilyRuntimeSettings();
        settings.setRepository(resolveRepository());
        settings.setConfManager(getConfManager());

        runtime = new LilyRuntime(settings);
        runtime.setMode(Mode.getDefault());
        runtime.start();
    }
View Full Code Here


    protected void setUp() throws Exception {
        setUpLogging();

        LilyRuntimeModel model = getRuntimeModel();
        if (model != null) {
            LilyRuntimeSettings settings = new LilyRuntimeSettings();
            settings.setModel(model);
            settings.setRepository(localRepository);
            settings.setConfManager(getConfManager());

            runtime = new LilyRuntime(settings);
            runtime.setMode(getMode());

            if (startRuntime()) {
View Full Code Here

            sourceLocations = new SourceLocations();
        }



        LilyRuntimeSettings settings = new LilyRuntimeSettings();
        settings.setConfManager(new ConfManagerImpl(confDirs));
        settings.setDisabledModuleIds(disabledModuleIds);
        settings.setRepository(artifactRepository);
        settings.setSourceLocations(sourceLocations);
        settings.setEnableArtifactSharing(!cmd.hasOption(disableClassSharingOption.getOpt()));

        LilyRuntime runtime = new LilyRuntime(settings);

        if (cmd.hasOption(modeOption.getOpt())) {
            String optionValue = cmd.getOptionValue(modeOption.getOpt());
View Full Code Here

*/
public class NoModuleRuntime extends AbstractRuntimeTest {

    public void testRuntimeWithoutModules() throws Exception {
        LilyRuntimeModel model = new LilyRuntimeModel();
        LilyRuntimeSettings settings = new LilyRuntimeSettings();
        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();
        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();
            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);
        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

Related Classes of org.lilyproject.runtime.LilyRuntimeSettings

Copyright © 2018 www.massapicom. 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.