public abstract class BasicDockerPlacementStrategy extends AbstractDockerPlacementStrategy implements com.google.common.base.Predicate<DockerHostLocation>, Comparator<DockerHostLocation>
Predicate and a Comparator.DOCKER_INFRASTRUCTURE| Constructor and Description |
|---|
BasicDockerPlacementStrategy() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
apply(DockerHostLocation input)
A
Predicate function that selects Docker hosts that satisy the strategy requirements. |
int |
compare(DockerHostLocation l1,
DockerHostLocation l2)
A
Comparator function that orders Docker hosts according to suitability, best first. |
List<DockerHostLocation> |
filterLocations(List<DockerHostLocation> locations,
brooklyn.entity.Entity context)
Filters a list of
locations to determine if the given Entity can be
deployed into a new container there. |
getDockerInfrastructure, toStringconfig, getBrooklynManagementContext, getConfig, getId, injectManagementContext, setConfigclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitequalspublic List<DockerHostLocation> filterLocations(List<DockerHostLocation> locations, brooklyn.entity.Entity context)
DockerAwarePlacementStrategylocations to determine if the given Entity can be
deployed into a new container there.filterLocations in interface DockerAwarePlacementStrategypublic boolean apply(DockerHostLocation input)
Predicate function that selects Docker hosts that satisy the strategy requirements.apply in interface com.google.common.base.Predicate<DockerHostLocation>public int compare(DockerHostLocation l1, DockerHostLocation l2)
Comparator function that orders Docker hosts according to suitability, best first.
Defaults to no ordering.
compare in interface Comparator<DockerHostLocation>Copyright © 2015. All rights reserved.