public class MaxContainersPlacementStrategy extends BasicDockerPlacementStrategy
Maximum is configured using DOCKER_CONTAINER_CLUSTER_MAX_SIZE with settings on
the infrastructure overriding if set, if nothing is configured the default is used.
| Modifier and Type | Field and Description |
|---|---|
static Integer |
DEFAULT_MAX_CONTAINERS |
static brooklyn.config.ConfigKey<Integer> |
DOCKER_CONTAINER_CLUSTER_MAX_SIZE |
DOCKER_INFRASTRUCTURE| Constructor and Description |
|---|
MaxContainersPlacementStrategy() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
apply(DockerHostLocation input)
A
Predicate function that selects Docker hosts that satisy the strategy requirements. |
compare, filterLocationsgetDockerInfrastructure, toStringconfig, getBrooklynManagementContext, getConfig, getId, injectManagementContext, setConfigclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitequalspublic static final brooklyn.config.ConfigKey<Integer> DOCKER_CONTAINER_CLUSTER_MAX_SIZE
public static final Integer DEFAULT_MAX_CONTAINERS
public boolean apply(DockerHostLocation input)
BasicDockerPlacementStrategyPredicate function that selects Docker hosts that satisy the strategy requirements.apply in interface com.google.common.base.Predicate<DockerHostLocation>apply in class BasicDockerPlacementStrategyCopyright © 2015. All rights reserved.