public class RebindContextLookupContext extends java.lang.Object implements BrooklynMementoPersister.LookupContext
RebindContext and ManagementContext to find entities, locations, etc.| Constructor and Description |
|---|
RebindContextLookupContext(ManagementContext managementContext,
RebindContextImpl rebindContext,
RebindExceptionHandler exceptionHandler)
Deprecated.
since 1.0.0 use other constructor (pass in description)
|
RebindContextLookupContext(java.lang.String description,
ManagementContext managementContext,
RebindContextImpl rebindContext,
RebindExceptionHandler exceptionHandler) |
RebindContextLookupContext(java.lang.String description,
RebindContextLookupContext sourceToCopy) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getContextDescription() |
BrooklynObject |
lookup(BrooklynObjectType type,
java.lang.String id)
retrieve the item with the given ID, optionally ensuring it is of the indicated type; null if not found
|
ManagedBundle |
lookupBundle(java.lang.String id) |
CatalogItem<?,?> |
lookupCatalogItem(java.lang.String id) |
Enricher |
lookupEnricher(java.lang.String id) |
Entity |
lookupEntity(java.lang.String id) |
Feed |
lookupFeed(java.lang.String id) |
Location |
lookupLocation(java.lang.String id) |
ManagementContext |
lookupManagementContext() |
Policy |
lookupPolicy(java.lang.String id) |
BrooklynObject |
peek(BrooklynObjectType type,
java.lang.String id)
like
BrooklynMementoPersister.LookupContext.lookup(BrooklynObjectType, String) but doesn't record an exception if not found |
java.lang.String |
popContextDescription() |
void |
pushContextDescription(java.lang.String description) |
@Deprecated public RebindContextLookupContext(ManagementContext managementContext, RebindContextImpl rebindContext, RebindExceptionHandler exceptionHandler)
public RebindContextLookupContext(java.lang.String description,
ManagementContext managementContext,
RebindContextImpl rebindContext,
RebindExceptionHandler exceptionHandler)
public RebindContextLookupContext(java.lang.String description,
RebindContextLookupContext sourceToCopy)
public java.lang.String getContextDescription()
getContextDescription in interface BrooklynMementoPersister.LookupContextpublic java.lang.String popContextDescription()
popContextDescription in interface BrooklynMementoPersister.LookupContextpublic void pushContextDescription(java.lang.String description)
pushContextDescription in interface BrooklynMementoPersister.LookupContextpublic ManagementContext lookupManagementContext()
lookupManagementContext in interface BrooklynMementoPersister.LookupContextpublic Entity lookupEntity(java.lang.String id)
lookupEntity in interface BrooklynMementoPersister.LookupContextpublic Location lookupLocation(java.lang.String id)
lookupLocation in interface BrooklynMementoPersister.LookupContextpublic Policy lookupPolicy(java.lang.String id)
lookupPolicy in interface BrooklynMementoPersister.LookupContextpublic Enricher lookupEnricher(java.lang.String id)
lookupEnricher in interface BrooklynMementoPersister.LookupContextpublic Feed lookupFeed(java.lang.String id)
lookupFeed in interface BrooklynMementoPersister.LookupContextpublic CatalogItem<?,?> lookupCatalogItem(java.lang.String id)
lookupCatalogItem in interface BrooklynMementoPersister.LookupContextpublic ManagedBundle lookupBundle(java.lang.String id)
lookupBundle in interface BrooklynMementoPersister.LookupContextpublic BrooklynObject lookup(BrooklynObjectType type, java.lang.String id)
BrooklynMementoPersister.LookupContextlookup in interface BrooklynMementoPersister.LookupContextpublic BrooklynObject peek(BrooklynObjectType type, java.lang.String id)
BrooklynMementoPersister.LookupContextBrooklynMementoPersister.LookupContext.lookup(BrooklynObjectType, String) but doesn't record an exception if not foundpeek in interface BrooklynMementoPersister.LookupContext