Brooklyn

brooklyn.policy.followthesun
[Java] Interface FollowTheSunModel


public interface FollowTheSunModel

Captures the state of items, containers and locations for the purpose of moving items around to minimise latency. For consumption by a FollowTheSunStrategy.


Method Summary
java.util.Set getAvailableContainersFor(ItemType item, Location location)

Location getContainerLocation(ContainerType container)

java.util.Map getDirectSendsToItemByLocation()

ContainerType getItemContainer(ItemType item)

Location getItemLocation(ItemType item)

java.util.Set getItems()

java.lang.String getName()

java.lang.String getName(ItemType item)

boolean hasActiveMigration(ItemType item)

boolean isItemAllowedIn(ItemType item, Location location)

boolean isItemMoveable(ItemType item)

void onContainerAdded(ContainerType container, Location location)

void onContainerLocationUpdated(ContainerType container, Location location)

void onContainerRemoved(ContainerType container)

void onItemAdded(ItemType item, ContainerType parentContainer, boolean immovable)

void onItemMoved(ItemType item, ContainerType newContainer)

void onItemRemoved(ItemType item)

void onItemUsageUpdated(ItemType item, java.util.Map newValues)

 

Method Detail

getAvailableContainersFor

public java.util.Set getAvailableContainersFor(ItemType item, Location location)


getContainerLocation

public Location getContainerLocation(ContainerType container)


getDirectSendsToItemByLocation

public java.util.Map getDirectSendsToItemByLocation()


getItemContainer

public ContainerType getItemContainer(ItemType item)


getItemLocation

public Location getItemLocation(ItemType item)


getItems

public java.util.Set getItems()


getName

public java.lang.String getName()


getName

public java.lang.String getName(ItemType item)


hasActiveMigration

public boolean hasActiveMigration(ItemType item)


isItemAllowedIn

public boolean isItemAllowedIn(ItemType item, Location location)


isItemMoveable

public boolean isItemMoveable(ItemType item)


onContainerAdded

public void onContainerAdded(ContainerType container, Location location)


onContainerLocationUpdated

public void onContainerLocationUpdated(ContainerType container, Location location)


onContainerRemoved

public void onContainerRemoved(ContainerType container)


onItemAdded

public void onItemAdded(ItemType item, ContainerType parentContainer, boolean immovable)


onItemMoved

public void onItemMoved(ItemType item, ContainerType newContainer)


onItemRemoved

public void onItemRemoved(ItemType item)


onItemUsageUpdated

public void onItemUsageUpdated(ItemType item, java.util.Map newValues)


 

Brooklyn Multi-Cloud Application Management Platform
brooklyncentral.github.com. Apache License. © 2012.