public interface ProvisioningLocation<T extends Location> extends Location
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, getConfig, getDisplayName, getExtension, getId, getParent, hasConfig, hasExtension, setParent, toVerboseString
getCatalogItemId, getTagSupport, tags
config, 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.