Brooklyn

brooklyn.extras.cloudfoundry
[Groovy] Class CloudFoundryLocation

java.lang.Object
  brooklyn.location.basic.AbstractLocation
      brooklyn.extras.cloudfoundry.CloudFoundryLocation
All Implemented Interfaces:
AddressableLocation, ElasticJavaWebAppServiceAwareLocation, WithMutexes

class CloudFoundryLocation
extends AbstractLocation

defines a cloudfoundry location

this can be specified as 'cloudfoundry:api.cloudfoundry.com', or as 'cloudfoundry:https://api.aws.af.cm/' (required by `vmc` if target requires https) or just 'cloudfoundry' (to use the default `vmc target`, in ~/.vmc_target)

username+password are not currently specifiable; we assume a token has been set up via `vmc login` (stored in ~/.vmc_token)


Nested Class Summary
static class CloudFoundryLocation.Resolver

 
Field Summary
static Logger log

 
Fields inherited from class AbstractLocation
LOG, PARENT_LOCATION, hostGeoInfo, name
 
Property Summary
static WithMutexes mutexSupport

 
Constructor Summary
CloudFoundryLocation(java.util.Map properties = [:])

 
Method Summary
void acquireMutex(java.lang.String mutexId, java.lang.String description)

java.net.InetAddress getAddress()

java.lang.String getHostname()

java.lang.String getTarget()

boolean hasMutex(java.lang.String mutexId)

ConfigurableEntityFactory newWebClusterFactory()

void releaseMutex(java.lang.String mutexId)

boolean tryAcquireMutex(java.lang.String mutexId, java.lang.String description)

 
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
 

Field Detail

log

public static final Logger log


 
Property Detail

mutexSupport

static WithMutexes mutexSupport


 
Constructor Detail

CloudFoundryLocation

CloudFoundryLocation(java.util.Map properties = [:])


 
Method Detail

acquireMutex

@Override
void acquireMutex(java.lang.String mutexId, java.lang.String description)


getAddress

@Override
java.net.InetAddress getAddress()


getHostname

java.lang.String getHostname()


getTarget

java.lang.String getTarget()


hasMutex

@Override
boolean hasMutex(java.lang.String mutexId)


newWebClusterFactory

@Override
ConfigurableEntityFactory newWebClusterFactory()


releaseMutex

@Override
void releaseMutex(java.lang.String mutexId)


tryAcquireMutex

@Override
boolean tryAcquireMutex(java.lang.String mutexId, java.lang.String description)


 

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