Package org.lilyproject.runtime.module.javaservice

Examples of org.lilyproject.runtime.module.javaservice.JavaServiceManager


     */
    public synchronized ZooKeeperItf getZooKeeper() throws ZkConnectException {
        if (zooKeeper == null) {
            switch (mode) {
                case EMBED:
                    JavaServiceManager serviceMgr = lilyServerTestUtility.getRuntime().getJavaServiceManager();
                    zooKeeper = (ZooKeeperItf) serviceMgr.getService(ZooKeeperItf.class);
                    break;
                case CONNECT:
                    zooKeeper = ZkUtil.connect("localhost:2181", 30000);
                    break;
                default:
View Full Code Here


    public synchronized WriteableIndexerModel getIndexerModel() throws ZkConnectException, InterruptedException, KeeperException {
        if (indexerModel == null) {
            switch (mode) {
                case EMBED:
                    JavaServiceManager serviceMgr = lilyServerTestUtility.getRuntime().getJavaServiceManager();
                    indexerModel = (WriteableIndexerModel) serviceMgr.getService(WriteableIndexerModel.class);
                    break;
                case CONNECT:
                    Configuration conf = HBaseIndexerConfiguration.create();
                    indexerModel = new IndexerModelImpl(new ZooKeeperItfAdapter(getZooKeeper()), conf.get(ConfKeys.ZK_ROOT_NODE));
                    break;
View Full Code Here

            throw new LilyRTException("LilyRuntimeSettings should contain a ConfManager.");
        }

        this.settings = settings;

        this.javaServiceManager = new JavaServiceManager();
        this.moduleSourceManager = new ModuleSourceManager(fam);
    }
View Full Code Here

        FileUtils.copyInputStreamToFile(resource.getInputStream() ,new File(moduleDir, configName + ".xml"));
    }

    @Test
    public void testFilterIsLoaded() throws Exception {
        JavaServiceManager serviceManager =
                proxy.getLilyServerProxy().getLilyServerTestingUtility().getRuntime().getJavaServiceManager();
        ServletRegistry service = (ServletRegistry) serviceManager.getService(ServletRegistry.class);
        assertThat(service.getFilterEntries()).hasSize(1);
    }
View Full Code Here

TOP

Related Classes of org.lilyproject.runtime.module.javaservice.JavaServiceManager

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.