Brooklyn

brooklyn.mementos
[Java] Interface BrooklynMemento


public interface BrooklynMemento
extends java.io.Serializable

Represents an entire persisted Brooklyn management context, with all its entities and locations. The referential integrity of this memento is not guaranteed. For example, an entity memento might reference a child entity that does not exist. This is an inevitable consequence of not using a stop-the-world persistence strategy, and is essential for a distributed brooklyn to be performant. Code using this memento should be tolerant of such inconsistencies (e.g. log a warning about the missing entity, and then ignore dangling references when constructing the entities/locations, so that code will not subsequently get NPEs when iterating over children for example).

Authors:
aled


Method Summary
java.util.Collection getApplicationIds()

java.util.Collection getEntityIds()

EntityMemento getEntityMemento(java.lang.String id)

java.util.Map getEntityMementos()

java.util.Collection getLocationIds()

LocationMemento getLocationMemento(java.lang.String id)

java.util.Map getLocationMementos()

java.util.Collection getPolicyIds()

PolicyMemento getPolicyMemento(java.lang.String id)

java.util.Map getPolicyMementos()

java.util.Collection getTopLevelLocationIds()

 
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()
 

Method Detail

getApplicationIds

public java.util.Collection getApplicationIds()


getEntityIds

public java.util.Collection getEntityIds()


getEntityMemento

public EntityMemento getEntityMemento(java.lang.String id)


getEntityMementos

public java.util.Map getEntityMementos()


getLocationIds

public java.util.Collection getLocationIds()


getLocationMemento

public LocationMemento getLocationMemento(java.lang.String id)


getLocationMementos

public java.util.Map getLocationMementos()


getPolicyIds

public java.util.Collection getPolicyIds()


getPolicyMemento

public PolicyMemento getPolicyMemento(java.lang.String id)


getPolicyMementos

public java.util.Map getPolicyMementos()


getTopLevelLocationIds

public java.util.Collection getTopLevelLocationIds()


 

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