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.LookupContext
public Entity lookupEntity(java.lang.String id)
lookupEntity
in interface BrooklynMementoPersister.LookupContext
public Location lookupLocation(java.lang.String id)
lookupLocation
in interface BrooklynMementoPersister.LookupContext
public Policy lookupPolicy(java.lang.String id)
lookupPolicy
in interface BrooklynMementoPersister.LookupContext
public Enricher lookupEnricher(java.lang.String id)
lookupEnricher
in interface BrooklynMementoPersister.LookupContext
public Feed lookupFeed(java.lang.String id)
lookupFeed
in interface BrooklynMementoPersister.LookupContext
public CatalogItem<?,?> lookupCatalogItem(java.lang.String id)
lookupCatalogItem
in interface BrooklynMementoPersister.LookupContext
public BrooklynObject lookup(BrooklynObjectType type, java.lang.String id)
lookup
in interface BrooklynMementoPersister.LookupContext
public BrooklynObject peek(BrooklynObjectType type, java.lang.String id)
BrooklynMementoPersister.LookupContext
BrooklynMementoPersister.LookupContext.lookup(BrooklynObjectType, String)
but doesn't record an exception if not foundpeek
in interface BrooklynMementoPersister.LookupContext