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.LookupContext
public java.lang.String popContextDescription()
popContextDescription
in interface BrooklynMementoPersister.LookupContext
public void pushContextDescription(java.lang.String description)
pushContextDescription
in interface BrooklynMementoPersister.LookupContext
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 ManagedBundle lookupBundle(java.lang.String id)
lookupBundle
in interface BrooklynMementoPersister.LookupContext
public BrooklynObject lookup(BrooklynObjectType type, java.lang.String id)
BrooklynMementoPersister.LookupContext
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