|
Brooklyn | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | METHOD | DETAIL: FIELD | METHOD |
brooklyn.location.Locationbrooklyn.location.MachineProvisioningLocation
brooklyn.entity.rebind.Rebindable
public interface MachineProvisioningLocation extends Location
A location that is able to provision new machines within its location. This interface extends Location to add the ability to provision MachineLocations in this location.
Method Summary | |
---|---|
java.util.Map
|
getProvisioningFlags(java.util.Collection tags)
Gets flags, suitable as an argument to obtain(Map). |
MachineProvisioningLocation
|
newSubLocation(java.util.Map newFlags)
Creates a new location of the same type, but with additional creation instructions in the form of flags, e.g. for specifying subnets, security groups, etc |
java.lang.Object
|
obtain(java.util.Map flags)
Obtain a machine in this location. |
void
|
release(java.lang.Object machine)
Release a previously-obtained machine. |
Methods inherited from interface Location | |
---|---|
containsLocation, findLocationProperty, getAllConfig, getChildLocations, getConfig, getId, getLocationProperty, getName, getParentLocation, getRebindSupport, hasConfig, hasLocationProperty, setParentLocation |
Methods inherited from interface Rebindable | |
---|---|
getRebindSupport |
Method Detail |
---|
public java.util.Map getProvisioningFlags(java.util.Collection tags)
public MachineProvisioningLocation newSubLocation(java.util.Map newFlags)
Implementers who wish to subclass this provisioning location for additional functionality in a specific cloud can use the relevant implementation of this method as a guide.
public java.lang.Object obtain(java.util.Map flags)
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)
public void release(java.lang.Object machine)
machine
- a MachineLocation previously obtained from a call to obtain()
Brooklyn Multi-Cloud Application Management Platform
brooklyncentral.github.com. Apache License. © 2012.