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) |
| Modifier and Type | Method and Description |
|---|---|
BrooklynObject |
lookup(BrooklynObjectType type,
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 |
public RebindContextLookupContext(ManagementContext managementContext, RebindContextImpl rebindContext, RebindExceptionHandler exceptionHandler)
public 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 BrooklynObject lookup(BrooklynObjectType type, java.lang.String id)
lookup 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