public abstract class AbstractDockerPlacementStrategy extends brooklyn.entity.group.zoneaware.BalancingNodePlacementStrategy implements DockerAwarePlacementStrategy
BalancingNodePlacementStrategy.BalancingNodePlacementStrategy| Modifier and Type | Field and Description |
|---|---|
protected DockerInfrastructure |
infrastructure |
| Constructor and Description |
|---|
AbstractDockerPlacementStrategy() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract List<brooklyn.location.Location> |
getDockerHostLocations(com.google.common.collect.Multimap<brooklyn.location.Location,brooklyn.entity.Entity> members,
List<DockerHostLocation> available,
int n) |
DockerInfrastructure |
getDockerInfrastructure() |
static com.google.common.base.Function<brooklyn.entity.trait.Identifiable,String> |
identity() |
void |
init(List<DockerHostLocation> locations) |
List<brooklyn.location.Location> |
locationsForAdditions(com.google.common.collect.Multimap<brooklyn.location.Location,brooklyn.entity.Entity> members,
Collection<? extends brooklyn.location.Location> locations,
int n) |
Map<DockerHostLocation,Integer> |
toAvailableLocationSizes(Iterable<DockerHostLocation> locations) |
String |
toString() |
entitiesToRemove, pickNewest, toMutableLocationSizesprotected DockerInfrastructure infrastructure
public static final com.google.common.base.Function<brooklyn.entity.trait.Identifiable,String> identity()
public void init(List<DockerHostLocation> locations)
init in interface DockerAwarePlacementStrategypublic final List<brooklyn.location.Location> locationsForAdditions(com.google.common.collect.Multimap<brooklyn.location.Location,brooklyn.entity.Entity> members, Collection<? extends brooklyn.location.Location> locations, int n)
locationsForAdditions in interface brooklyn.entity.group.DynamicCluster.NodePlacementStrategylocationsForAdditions in class brooklyn.entity.group.zoneaware.BalancingNodePlacementStrategyprotected abstract List<brooklyn.location.Location> getDockerHostLocations(com.google.common.collect.Multimap<brooklyn.location.Location,brooklyn.entity.Entity> members, List<DockerHostLocation> available, int n)
public DockerInfrastructure getDockerInfrastructure()
getDockerInfrastructure in interface DockerAwarePlacementStrategypublic Map<DockerHostLocation,Integer> toAvailableLocationSizes(Iterable<DockerHostLocation> locations)
toAvailableLocationSizes in interface DockerAwarePlacementStrategyCopyright © 2014. All rights reserved.