|
Brooklyn | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | METHOD | DETAIL: FIELD | METHOD |
public interface RebindSupport
Supporter instance for behaviour related to rebinding a given entity/location/policy. For example, the brooklyn framework may call entity.getRebindSupport().getMemento() and persist this using a BrooklynMementoPersister. Later (e.g. after a brooklyn restart) a new entity instance may be created and populated by the framework calling entity.getRebindSupport().reconstruct(rebindContext, memento).
Method Summary | |
---|---|
java.lang.Object
|
getMemento()
Creates a memento representing this entity's current state. |
void
|
reconstruct(RebindContext rebindContext, java.lang.Object memento)
Reconstructs this entity, given a memento of its state. |
Method Detail |
---|
public java.lang.Object getMemento()
public void reconstruct(RebindContext rebindContext, java.lang.Object memento)
Brooklyn Multi-Cloud Application Management Platform
brooklyncentral.github.com. Apache License. © 2012.