|
Brooklyn | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbrooklyn.location.basic.AbstractLocation
brooklyn.location.basic.FixedListMachineProvisioningLocation
public class FixedListMachineProvisioningLocation extends AbstractLocation
A provisioner of MachineLocations which takes a list of machines it can connect to. The collection of initial machines should be supplied in the 'machines' flag in the constructor, for example a list of machines which can be SSH'd to. This can be extended to have a mechanism to make more machines to be available (override provisionMore and canProvisionMore).
Nested Class Summary | |
---|---|
static class |
FixedListMachineProvisioningLocation.Builder
Facilitates fluent/programmatic style for constructing a fixed pool of machines. |
Field Summary | |
---|---|
protected java.util.Set |
inUse
|
protected java.util.Set |
machines
|
Fields inherited from class AbstractLocation | |
---|---|
LOG, hostGeoInfo, leftoverProperties, name |
Constructor Summary | |
FixedListMachineProvisioningLocation()
|
|
FixedListMachineProvisioningLocation(java.util.Map properties)
|
Method Summary | |
---|---|
protected void
|
addChildLocation(Location child)
|
boolean
|
canProvisionMore()
|
protected void
|
configure(java.util.Map properties)
|
java.util.Set
|
getAvailable()
|
protected java.util.Set
|
getInUse()
|
double
|
getLatitude()
|
double
|
getLongitude()
|
protected java.util.Set
|
getMachines()
|
java.util.Map
|
getProvisioningFlags(java.util.Collection tags)
|
java.lang.Object
|
obtain()
|
java.lang.Object
|
obtain(java.util.Map flags)
|
void
|
provisionMore(int size)
|
void
|
release(java.lang.Object machine)
|
protected boolean
|
removeChildLocation(Location child)
|
Methods inherited from class AbstractLocation | |
---|---|
addChildLocation, configure, configure, containsLocation, equals, findLocationProperty, getChildLocations, getHostGeoInfo, getId, getLocationProperty, getName, getParentLocation, hasLocationProperty, hashCode, removeChildLocation, setHostGeoInfo, setParentLocation, string, toString |
Field Detail |
---|
protected java.util.Set inUse
@SetFromFlag("machines") protected java.util.Set machines
Constructor Detail |
---|
public FixedListMachineProvisioningLocation()
public FixedListMachineProvisioningLocation(java.util.Map properties)
Method Detail |
---|
@Override protected void addChildLocation(Location child)
public boolean canProvisionMore()
protected void configure(java.util.Map properties)
public java.util.Set getAvailable()
protected java.util.Set getInUse()
public double getLatitude()
public double getLongitude()
protected java.util.Set getMachines()
@Override public java.util.Map getProvisioningFlags(java.util.Collection tags)
public java.lang.Object obtain()
@Override public java.lang.Object obtain(java.util.Map flags)
public void provisionMore(int size)
@Override public void release(java.lang.Object machine)
@Override protected boolean removeChildLocation(Location child)
Brooklyn Multi-Cloud Application Management Platform
brooklyncentral.github.com. Apache License. © 2012.