public interface ProvisioningLocation<T extends Location> extends Location
BrooklynObject.RelationSupport<T extends BrooklynObject>, BrooklynObject.SubscriptionSupport, BrooklynObject.TagSupport
Configurable.ConfigurationSupport
Modifier and Type | Method and Description |
---|---|
T |
obtain(java.util.Map<?,?> flags)
Obtain a new (sub)-location in the location represented by this class.
|
void |
release(T machine)
Release a previously-obtained location.
|
containsLocation, getChildren, getConfig, getDisplayName, getExtension, getId, getParent, hasExtension, relations, setParent, toVerboseString
getCatalogItemId, getCatalogItemIdSearchPath, subscriptions, tags
config, getConfig
T obtain(java.util.Map<?,?> flags) throws LocationNotAvailableException
flags
- Constraints and details of the location to be provisionedLocationNotAvailableException
- if could not provision such a locationvoid release(T machine)
location
- a location previously obtainedjava.lang.IllegalStateException
- if the machine did not come from a call to #obtain()
or it has already been released.