Examples of FabricServiceImpl


Examples of io.fabric8.service.FabricServiceImpl

        Map<String, Object> datastoreProperties = new HashMap<String, Object>();
        datastoreProperties.put(GitDataStore.GIT_REMOTE_URL, remoteUrl);
        dataStore.activate(datastoreProperties);
        */

        fabricService = new FabricServiceImpl();
        //fabricService.bindDataStore(dataStore);
        fabricService.bindRuntimeProperties(runtimeProperties);
        fabricService.bindPlaceholderResolver(new DummyPlaceholerResolver("port"));
        fabricService.bindPlaceholderResolver(new DummyPlaceholerResolver("zk"));
        fabricService.bindPlaceholderResolver(new ProfilePropertyPointerResolver());
View Full Code Here

Examples of io.fabric8.service.FabricServiceImpl

     * the value
     */
    @Override
    public Map<String, String> currentContainerConfigurationFiles() {
        String containerName = getCurrentContainerName();
        FabricServiceImpl service = fabricService;
        Container container = service.getContainer(containerName);
        if (container != null) {
            Profile[] profiles = container.getProfiles();
            return Profiles.getConfigurationFileNameMap(profiles);
        }
        return new HashMap<String, String>();
View Full Code Here

Examples of io.fabric8.service.FabricServiceImpl

            LOG.info("Connecting to Fuse Fabric at " + fabricUrl);
            ZKClientFactoryBean factory = new ZKClientFactoryBean();
            factory.setPassword(fabricPassword);
            factory.setConnectString(fabricUrl);
            IZKClient zooKeeper = factory.getObject();
            FabricServiceImpl impl = new FabricServiceImpl();
            impl.setZooKeeper(zooKeeper);
            impl.bindMBeanServer(mbeanServer);
            //impl.init();
            ZooKeeperDataStore dataStore = new ZooKeeperDataStore();
            dataStore.setZk(zooKeeper);


            ZookeeperPlaceholderResolver zookeeperPlaceholderResolver = new ZookeeperPlaceholderResolver();
            zookeeperPlaceholderResolver.setZooKeeper(zooKeeper);

            List<PlaceholderResolver> placeholderResolvers = new ArrayList<PlaceholderResolver>();
            placeholderResolvers.add(new ChecksumPlaceholderResolver());
            placeholderResolvers.add(zookeeperPlaceholderResolver);

            dataStore.setPlaceholderResolvers(placeholderResolvers);
            impl.setDataStore(dataStore);
        }
    }
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.