brooklyn.mementos
Interface BrooklynMemento
- All Superinterfaces:
- Serializable
public interface BrooklynMemento
- extends 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).
getEntityMemento
EntityMemento getEntityMemento(String id)
getLocationMemento
LocationMemento getLocationMemento(String id)
getPolicyMemento
PolicyMemento getPolicyMemento(String id)
getApplicationIds
Collection<String> getApplicationIds()
getTopLevelLocationIds
Collection<String> getTopLevelLocationIds()
getEntityIds
Collection<String> getEntityIds()
getLocationIds
Collection<String> getLocationIds()
getPolicyIds
Collection<String> getPolicyIds()
getEntityMementos
Map<String,EntityMemento> getEntityMementos()
getLocationMementos
Map<String,LocationMemento> getLocationMementos()
getPolicyMementos
Map<String,PolicyMemento> getPolicyMementos()
Copyright © 2013. All Rights Reserved.