|
Brooklyn | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | METHOD | DETAIL: FIELD | METHOD |
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).
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 |
---|
public java.util.Collection getApplicationIds()
public java.util.Collection getEntityIds()
public EntityMemento getEntityMemento(java.lang.String id)
public java.util.Map getEntityMementos()
public java.util.Collection getLocationIds()
public LocationMemento getLocationMemento(java.lang.String id)
public java.util.Map getLocationMementos()
public java.util.Collection getPolicyIds()
public PolicyMemento getPolicyMemento(java.lang.String id)
public java.util.Map getPolicyMementos()
public java.util.Collection getTopLevelLocationIds()
Brooklyn Multi-Cloud Application Management Platform
brooklyncentral.github.com. Apache License. © 2012.