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, getAllConfig, getChildren, getConfig, getDisplayName, getExtension, getId, getParent, hasConfig, hasExtension, relations, setParent, toVerboseString
getCatalogItemId, subscriptions, tags
config, getConfig, setConfig
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.