Examples of ChildScalingRequirements


Examples of io.fabric8.api.ChildScalingRequirements

        return builder.jmxUser("admin").jmxPassword(zookeeperPassword).
                zookeeperUrl(zookeeperUrl).zookeeperPassword(zookeeperPassword);
    }

    protected String chooseRootContainer(AutoScaleRequest request, List<String> containerIds) {
        ChildScalingRequirements scalingRequirements = getChildScalingRequirements(request);
        if (scalingRequirements != null) {
            List<String> rootContainerPatterns = scalingRequirements.getRootContainerPatterns();
            if (rootContainerPatterns != null && !rootContainerPatterns.isEmpty()) {
                Filter<String> filter = Filters.createStringFilters(rootContainerPatterns);
                List<String> matchingRootContainers = Filters.filter(containerIds, filter);
                return Filters.matchRandomElement(matchingRootContainers);
            }
View Full Code Here

Examples of io.fabric8.api.ChildScalingRequirements

        }
        return Filters.matchRandomElement(containerIds);
    }

    protected ChildScalingRequirements getChildScalingRequirements(AutoScaleRequest request) {
        ChildScalingRequirements scalingRequirements = null;
        ProfileRequirements profileRequirements = request.getProfileRequirements();
        if (profileRequirements != null) {
            scalingRequirements = profileRequirements.getChildScalingRequirements();
        }
        return scalingRequirements;
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.