public class SingleMachineProvisioningLocation<T extends MachineLocation> extends FixedListMachineProvisioningLocation<T>
FixedListMachineProvisioningLocation.BuilderAbstractLocation.BasicSubscriptionSupportBrooklynObject.RelationSupport<T extends BrooklynObject>, BrooklynObject.SubscriptionSupport, BrooklynObject.TagSupportConfigurable.ConfigurationSupportBrooklynObjectInternal.ConfigurationSupportInternal, BrooklynObjectInternal.RelationSupportInternal<T extends BrooklynObject>, BrooklynObjectInternal.SubscriptionSupportInternalMACHINE_CHOOSER, MACHINE_LOCATION_CUSTOMIZERS, MACHINE_SPECSLOG, PARENT_LOCATION, TEMPORARY_LOCATIONFINAL_SPEC, NAMED_SPEC_NAME, ORIGINAL_SPEC| Constructor and Description | 
|---|
| SingleMachineProvisioningLocation() | 
| SingleMachineProvisioningLocation(java.lang.String location,
                                 java.util.Map locationFlags) | 
| Modifier and Type | Method and Description | 
|---|---|
| T | obtain() | 
| T | obtain(java.util.Map flags)Obtain a machine in this location. | 
| void | release(T machine)Release a previously-obtained machine. | 
addChild, addMachine, close, configure, getAllMachines, getAvailable, getInUse, getProvisioningFlags, init, newSubLocation, removeChild, removeMachine, toVerboseStringaddExtension, config, containsLocation, equals, getAllConfig, getAllConfigBag, getChildren, getConfig, getConfig, getDisplayName, getExtension, getHostGeoInfo, getLocalConfigBag, getParent, getRawLocalConfigBag, getRebindSupport, hasConfig, hasExtension, hashCode, isManaged, onManagementStarted, onManagementStopped, relations, setConfig, setDisplayName, setHostGeoInfo, setManagementContext, setName, setParent, setParent, subscriptions, toMetadataRecord, toStringgetCatalogItemId, getId, getManagementContext, rebind, setCatalogItemId, tagscontainsLocation, getAllConfig, getChildren, getConfig, getDisplayName, getExtension, getId, getParent, hasConfig, hasExtension, relations, setParentgetCatalogItemId, subscriptions, tagsconfig, getConfig, setConfiggetManagementContextsetCatalogItemIdpublic SingleMachineProvisioningLocation()
public SingleMachineProvisioningLocation(java.lang.String location,
                                 java.util.Map locationFlags)
public T obtain(java.util.Map flags) throws NoMachinesAvailableException
MachineProvisioningLocationobtain in interface MachineProvisioningLocation<T extends MachineLocation>obtain in interface ProvisioningLocation<T extends MachineLocation>obtain in class FixedListMachineProvisioningLocation<T extends MachineLocation>flags - Details of the desired machine (e.g. image, size, open ports, etc; some flag support is limited to selected providers).
 "callerContext" can be specified to have custom logging and error messages (useful if starting machines in parallel)NoMachinesAvailableException - if there are no machines available in this location (or impls may return null, but that is discouraged)public T obtain() throws NoMachinesAvailableException
obtain in class FixedListMachineProvisioningLocation<T extends MachineLocation>NoMachinesAvailableExceptionpublic void release(T machine)
MachineProvisioningLocationrelease in interface MachineProvisioningLocation<T extends MachineLocation>release in interface ProvisioningLocation<T extends MachineLocation>release in class FixedListMachineProvisioningLocation<T extends MachineLocation>machine - a MachineLocation previously obtained from a call to #obtain()