Package brooklyn.location.docker.strategy

Examples of brooklyn.location.docker.strategy.BreadthFirstPlacementStrategy


    @Override
    public void initApp() {
        EntitySpec dockerSpec = EntitySpec.create(DockerHost.class)
                .configure(SoftwareProcess.START_TIMEOUT, Duration.minutes(15));

        BreadthFirstPlacementStrategy strategy = new BreadthFirstPlacementStrategy();
        strategy.injectManagementContext(getManagementContext());
        strategy.setConfig(BreadthFirstPlacementStrategy.DOCKER_CONTAINER_CLUSTER_MAX_SIZE, getConfig(DOCKER_CONTAINER_CLUSTER_MAX_SIZE));

        addChild(EntitySpec.create(DockerInfrastructure.class)
                .configure(DockerInfrastructure.DOCKER_VERSION, getConfig(DOCKER_VERSION))
                .configure(DockerInfrastructure.SECURITY_GROUP, getConfig(SECURITY_GROUP))
                .configure(DockerInfrastructure.OPEN_IPTABLES, true)
View Full Code Here

TOP

Related Classes of brooklyn.location.docker.strategy.BreadthFirstPlacementStrategy

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.