public abstract class RebindIteration
extends java.lang.Object
BrooklynMementoManifest
RebindSupport.reconstruct(RebindContext, Memento)
When rebinding to code in OSGi bundles, thecatalog item id context is inferred as follows: most of the time the creator will be passing "my catalog item id" (or API could also take "BrooklynObject me" as a creation context and the receiver query the creator's catalog item id) look at the context entity of Tasks.current() (if set) propagate the catalog item id when doing setEntity, addChild when none of the above work (or they are wrong) let the user specify the catalog item
Precedence of setting the catalog item ID: 1. User-supplied catalog item ID. 2. Creating from a catalog item - all items resolved during the creation of a spec from a catalog item receive the catalog item's ID as context. 3. When using the Java API for creating specs get the catalog item ID from the context entity of the Tasks.current() task. 4. Propagate the context catalog item ID to children, adjuncts if they don't have one already.
Constructor and Description |
---|
RebindIteration(RebindManagerImpl rebindManager,
ManagementNodeState mode,
java.lang.ClassLoader classLoader,
RebindExceptionHandler exceptionHandler,
java.util.concurrent.Semaphore rebindActive,
java.util.concurrent.atomic.AtomicInteger readOnlyRebindCount,
PersistenceActivityMetrics rebindMetrics,
BrooklynMementoPersister persistenceStoreAccess) |
Modifier and Type | Method and Description |
---|---|
java.util.List<Application> |
getApplications() |
void |
run() |
public RebindIteration(RebindManagerImpl rebindManager, ManagementNodeState mode, java.lang.ClassLoader classLoader, RebindExceptionHandler exceptionHandler, java.util.concurrent.Semaphore rebindActive, java.util.concurrent.atomic.AtomicInteger readOnlyRebindCount, PersistenceActivityMetrics rebindMetrics, BrooklynMementoPersister persistenceStoreAccess)
public java.util.List<Application> getApplications()
public void run()