Brooklyn

brooklyn.location.basic
[Java] Class SimulatedLocation

java.lang.Object
  brooklyn.location.basic.AbstractLocation
      brooklyn.location.basic.SimulatedLocation
All Implemented Interfaces:
MachineLocation, MachineProvisioningLocation, PortSupplier

public class SimulatedLocation
extends AbstractLocation

Location for use in dev/test, defining custom start/stop support, and/or tweaking the ports which are permitted to be available (using setPermittedPorts(Iterable))


Field Summary
 
Fields inherited from class AbstractLocation
LOG, PARENT_LOCATION, hostGeoInfo, name
 
Constructor Summary
SimulatedLocation()

SimulatedLocation(java.util.Map flags)

 
Method Summary
java.net.InetAddress getAddress()

OsDetails getOsDetails()

java.util.Map getProvisioningFlags(java.util.Collection tags)

SimulatedLocation newSubLocation(java.util.Map newFlags)

MachineLocation obtain(java.util.Map flags)

int obtainPort(PortRange range)

boolean obtainSpecificPort(int portNumber)

void release(MachineLocation machine)

void releasePort(int portNumber)

void setPermittedPorts(java.lang.Iterable ports)

 
Methods inherited from class AbstractLocation
addChildLocation, configure, configure, containsLocation, equals, findLocationProperty, getAllConfig, getChildLocations, getConfig, getConfigBag, getHostGeoInfo, getId, getLocationProperty, getName, getParentLocation, getRebindSupport, hasConfig, hasLocationProperty, hashCode, removeChildLocation, setConfig, setHostGeoInfo, setName, setParentLocation, string, toString
 

Constructor Detail

SimulatedLocation

public SimulatedLocation()


SimulatedLocation

public SimulatedLocation(java.util.Map flags)


 
Method Detail

getAddress

public java.net.InetAddress getAddress()


getOsDetails

@Override
public OsDetails getOsDetails()


getProvisioningFlags

public java.util.Map getProvisioningFlags(java.util.Collection tags)


newSubLocation

@Override
public SimulatedLocation newSubLocation(java.util.Map newFlags)


obtain

public MachineLocation obtain(java.util.Map flags)


obtainPort

public int obtainPort(PortRange range)


obtainSpecificPort

public boolean obtainSpecificPort(int portNumber)


release

public void release(MachineLocation machine)


releasePort

public void releasePort(int portNumber)


setPermittedPorts

public void setPermittedPorts(java.lang.Iterable ports)


 

Brooklyn Multi-Cloud Application Management Platform
brooklyncentral.github.com. Apache License. © 2012.