Brooklyn

brooklyn.extras.cloudfoundry
[Groovy] Class CloudFoundryJavaWebAppCluster

java.lang.Object
  groovy.lang.GroovyObjectSupport
      brooklyn.entity.basic.AbstractEntity
          brooklyn.extras.cloudfoundry.CloudFoundryJavaWebAppCluster
All Implemented Interfaces:
ElasticJavaWebAppService, Resizable, Startable

class CloudFoundryJavaWebAppCluster
extends AbstractEntity

Nested Class Summary
static class CloudFoundryJavaWebAppCluster.Factory

 
Field Summary
static BasicAttributeSensor API_HOSTNAME

static BasicAttributeSensor APP_HOSTNAME

static BasicConfigKey APP_NAME

static BasicAttributeSensor CPU_USAGE

static BasicConfigKey HOSTNAME_TO_USE_FOR_URL

static BasicAttributeSensor MEMORY_USED_FRACTION

static java.lang.Object SERVICE_STATE

static BasicAttributeSensor SIZE

AppRecord appRecord

protected static WithMutexes cfMutex

protected SensorRegistry sensorRegistry

 
Fields inherited from class AbstractEntity
LOG, POLICY_ADDED, POLICY_REMOVED, SENSOR_ADDED, SENSOR_REMOVED, _subscriptionTracker, attributesInternal, configsInternal, managementSupport, tempWorkings
 
Constructor Summary
CloudFoundryJavaWebAppCluster(java.util.Map flags = [:], Entity parent = null)

 
Method Summary
void connectSensors()

void destroy()

java.lang.String getAppName()

CloudFoundryVmcCliAccess getCfAccess()

java.lang.Integer getCurrentSize()

java.lang.String getWar()

java.lang.String getWebAppAddress()

java.lang.Integer resize(java.lang.Integer desiredSize)

void restart()

void start(java.util.Collection locations)

void startInLocation(java.util.Collection locations)

void startInLocation(CloudFoundryLocation ol)

void stop()

protected void useTarget(java.lang.String target)

 
Methods inherited from class AbstractEntity
addChild, addChild, addEnricher, addGroup, addLocations, addOwnedChild, addPolicy, assertNotYetOwned, clearOwner, clearParent, configure, configure, configure, configure, configure, createManagementSupport, destroy, emit, emitInternal, equals, finalize, firstLocation, getAllAttributes, getAllConfig, getApplication, getApplicationId, getAttribute, getAttributeByNameParts, getChildren, getChildrenReference, getConfig, getConfig, getConfig, getConfig, getConfigMap, getDisplayName, getEffector, getEnrichers, getEntityManager, getEntityType, getEntityTypeName, getExecutionContext, getGroups, getId, getLocations, getManagementContext, getManagementSupport, getMutableEntityType, getOwnedChildren, getOwnedChildrenReference, getOwner, getParent, getPolicies, getProxy, getProxyIfAvailable, getRebindSupport, getSubscriptionContext, getSubscriptionTracker, hasEverBeenManaged, hashCode, init, invalidateReferences, invoke, invoke, invokeFromJava, invokeMethod, isLegacyConstruction, onManagementBecomingMaster, onManagementNoLongerMaster, onManagementStarted, onManagementStarting, refreshInheritedConfig, refreshInheritedConfigOfChildren, removeAllEnrichers, removeAllPolicies, removeAttribute, removeChild, removeEnricher, removeLocations, removeOwnedChild, removePolicy, setApplication, setAttribute, setAttribute, setAttributeWithoutPublishing, setBeingManaged, setConfig, setConfig, setConfig, setConfig, setConfig, setConfig, setConfigEvenIfOwned, setConfigEvenIfOwned, setConfigIfValNonNull, setConfigIfValNonNull, setDisplayName, setManagementContext, setOwner, setParent, setProxy, subscribe, subscribeToChildren, subscribeToMembers, toString, toStringFieldsToInclude, toStringHelper, unsubscribe, unsubscribe
 
Methods inherited from class groovy.lang.GroovyObjectSupport
groovy.lang.GroovyObjectSupport#setProperty(java.lang.String, java.lang.Object), groovy.lang.GroovyObjectSupport#getProperty(java.lang.String), groovy.lang.GroovyObjectSupport#getMetaClass(), groovy.lang.GroovyObjectSupport#setMetaClass(groovy.lang.MetaClass), groovy.lang.GroovyObjectSupport#invokeMethod(java.lang.String, java.lang.Object), groovy.lang.GroovyObjectSupport#wait(), groovy.lang.GroovyObjectSupport#wait(long), groovy.lang.GroovyObjectSupport#wait(long, int), groovy.lang.GroovyObjectSupport#equals(java.lang.Object), groovy.lang.GroovyObjectSupport#toString(), groovy.lang.GroovyObjectSupport#hashCode(), groovy.lang.GroovyObjectSupport#getClass(), groovy.lang.GroovyObjectSupport#notify(), groovy.lang.GroovyObjectSupport#notifyAll()
 

Field Detail

API_HOSTNAME

public static final BasicAttributeSensor API_HOSTNAME


APP_HOSTNAME

public static final BasicAttributeSensor APP_HOSTNAME


APP_NAME

@SetFromFlag("appName")
public static final BasicConfigKey APP_NAME


CPU_USAGE

public static final BasicAttributeSensor CPU_USAGE


HOSTNAME_TO_USE_FOR_URL

@SetFromFlag("url")
public static final BasicConfigKey HOSTNAME_TO_USE_FOR_URL


MEMORY_USED_FRACTION

public static final BasicAttributeSensor MEMORY_USED_FRACTION


SERVICE_STATE

public static final java.lang.Object SERVICE_STATE


SIZE

public static final BasicAttributeSensor SIZE


appRecord

public AppRecord appRecord


cfMutex

protected static WithMutexes cfMutex


sensorRegistry

protected SensorRegistry sensorRegistry


 
Constructor Detail

CloudFoundryJavaWebAppCluster

CloudFoundryJavaWebAppCluster(java.util.Map flags = [:], Entity parent = null)


 
Method Detail

connectSensors

void connectSensors()


destroy

void destroy()


getAppName

java.lang.String getAppName()


getCfAccess

CloudFoundryVmcCliAccess getCfAccess()


getCurrentSize

@Override
java.lang.Integer getCurrentSize()


getWar

java.lang.String getWar()


getWebAppAddress

java.lang.String getWebAppAddress()


resize

@Override
java.lang.Integer resize(java.lang.Integer desiredSize)


restart

void restart()


start

void start(java.util.Collection locations)


startInLocation

void startInLocation(java.util.Collection locations)


startInLocation

void startInLocation(CloudFoundryLocation ol)


stop

void stop()


useTarget

protected void useTarget(java.lang.String target)


 

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