public abstract class BasicDockerPlacementStrategy extends AbstractDockerPlacementStrategy implements com.google.common.base.Predicate<DockerHostLocation>, Comparator<DockerHostLocation>
Predicate and a Comparator.| Modifier and Type | Field and Description |
|---|---|
protected org.apache.brooklyn.api.entity.Entity |
entity |
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,
org.apache.brooklyn.api.entity.Entity context)
Filters a list of
locations to determine if the given Entity can be
deployed into a new container there. |
getDockerInfrastructure, getShortName, toStringconfig, getBrooklynManagementContext, getConfig, getId, setConfig, setManagementContextclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitequalspublic List<DockerHostLocation> filterLocations(List<DockerHostLocation> locations, org.apache.brooklyn.api.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 © 2012–2016 The Apache Software Foundation. All rights reserved.