| 
 | Brooklyn | |||||||
| FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectbrooklyn.policy.followthesun.DefaultFollowTheSunModel
public class DefaultFollowTheSunModel
| Constructor Summary | |
| DefaultFollowTheSunModel(java.lang.String name) | |
| Methods inherited from class java.lang.Object | |
|---|---|
| java.lang.Object#wait(), java.lang.Object#wait(long), java.lang.Object#wait(long, int), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() | 
| Constructor Detail | 
|---|
public DefaultFollowTheSunModel(java.lang.String name)
| Method Detail | 
|---|
double totalInboundByActor = (outboundUsage != null) ? sum(outboundUsage.values()) : 0d; public void dumpItemDistribution()
} public void dumpItemDistribution(java.io.PrintStream out)
public void onItemMoved(ItemType item, ContainerType newContainer) {
public java.util.Set getAvailableContainersFor(ItemType item, Location location)
        
public Location getContainerLocation(ContainerType container) {
public Location getContainerLocation(ContainerType container)
        
ItemType targetItem = entry.getKey();
            Map extends ItemType, Double> sources = entry.getValue();
            if (sources.isEmpty()) continue; // no-one talking to us
public java.util.Map getDirectSendsToItemByLocation()
        
public ContainerType getItemContainer(ItemType item) {
public ContainerType getItemContainer(ItemType item)
        
public Location getItemLocation(ItemType item) {
public Location getItemLocation(ItemType item)
        
public SetgetItems() { public java.util.Set getItems() 
} public java.lang.String getName()
public java.lang.String getName(ItemType item)
// FIXME T public boolean hasActiveMigration(ItemType item)
@Override public boolean isItemAllowedIn(ItemType item, Location location)
} public boolean isItemMoveable(ItemType item)
out.println("\t"+"Location "+location);
public java.lang.String itemDistributionToString()
        
public static java.util.Map newHashMap(java.lang.Object k, java.lang.Object v)
containers.remove(container); public void onContainerAdded(ContainerType container, Location location)
public void onContainerLocationUpdated(ContainerType container, Location location)
} public void onContainerRemoved(ContainerType container)
@Override public void onItemAdded(ItemType item, ContainerType container, boolean immovable)
public void onContainerAdded(ContainerType container, Location location) {
public void onItemMoved(ItemType item, ContainerType newContainer)
        
if (LOG.isDebugEnabled()) LOG.debug("Ignoring setting of usage for unknown item {}, to {}", item, newValue);
public void onItemRemoved(ItemType item)
        
* Warning: this can be an expensive (time and memory) operation if there are a lot of items/containers. public void onItemUsageUpdated(ItemType item, java.util.Map newValue)
public static double sum(java.util.Collection values)
Brooklyn Multi-Cloud Application Management Platform 
 brooklyncentral.github.com. Apache License. © 2012.