Brooklyn

brooklyn.entity.webapp
[Groovy] Class ControlledDynamicWebAppCluster

java.lang.Object
  groovy.lang.GroovyObjectSupport
      brooklyn.entity.basic.AbstractEntity
          brooklyn.entity.webapp.ControlledDynamicWebAppCluster
All Implemented Interfaces:
ElasticJavaWebAppService, Resizable, Startable

class ControlledDynamicWebAppCluster
extends AbstractEntity

This entity contains the sub-groups and entities that go in to a single location (e.g. datacenter) to provide web-app cluster functionality, viz load-balancer (controller) and webapp software processes.

You can customise the web server by customising the factory (by reference in calling code) or supplying your own factory (as a config flag).

The contents of this group entity are:


Field Summary
static Sensor HOSTNAME

static BasicConfigKey INITIAL_SIZE

static Logger log

 
Fields inherited from class AbstractEntity
LOG, SENSOR_ADDED, SENSOR_REMOVED, _subscriptionTracker, application, attributesInternal, configsInternal, execution, managementContext, managementData, subscription, tempWorkings
 
Property Summary
AbstractController _controller

ConfigurableEntityFactory _webServerFactory

factory (or closure) to create the web server, given flags

 
Constructor Summary
ControlledDynamicWebAppCluster(Entity owner)

ControlledDynamicWebAppCluster(java.util.Map flags = [:], Entity owner = null)

 
Method Summary
void connectSensors()

DynamicWebAppCluster getCluster()

AbstractController getController()

java.lang.Integer getCurrentSize()

@return the current size of the group.

ConfigurableEntityFactory getFactory()

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

void restart()

void start(java.util.Collection locations)

void stop()

 
Methods inherited from class AbstractEntity
addEnricher, addGroup, addOwnedChild, addPolicy, assertNotYetOwned, clearOwner, configure, configure, destroy, emit, emitInternal, firstLocation, getAllConfig, getApplication, getApplicationId, getAttribute, getAttributeByNameParts, getConfig, getConfig, getConfig, getConfig, getConfigMap, getEffector, getEnrichers, getEntityType, getExecutionContext, getGroups, getLocations, getManagementContext, getMutableEntityType, getOwnedChildren, getOwner, getPolicies, getSubscriptionContext, getSubscriptionTracker, hasEverBeenManaged, invalidate, invoke, invoke, invokeFromJava, invokeMethod, onManagementBecomingMaster, onManagementNoLongerMaster, refreshInheritedConfig, refreshInheritedConfigOfChildren, removeAllEnrichers, removeAllPolicies, removeAttribute, removeEnricher, removeOwnedChild, removePolicy, setApplication, setAttribute, setAttribute, setBeingManaged, setConfig, setConfig, setConfigEvenIfOwned, setConfigEvenIfOwned, setConfigIfValNonNull, setConfigIfValNonNull, setOwner, subscribe, subscribeToChildren, subscribeToMembers, toString, toStringFieldsToInclude, 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

HOSTNAME

public static final Sensor HOSTNAME


INITIAL_SIZE

@SetFromFlag('initialSize')
public static BasicConfigKey INITIAL_SIZE


log

public static final Logger log


 
Property Detail

_controller

@SetFromFlag("controller")
AbstractController _controller


_webServerFactory

@SetFromFlag("factory")
ConfigurableEntityFactory _webServerFactory
factory (or closure) to create the web server, given flags


 
Constructor Detail

ControlledDynamicWebAppCluster

ControlledDynamicWebAppCluster(Entity owner)


ControlledDynamicWebAppCluster

ControlledDynamicWebAppCluster(java.util.Map flags = [:], Entity owner = null)


 
Method Detail

connectSensors

void connectSensors()


getCluster

DynamicWebAppCluster getCluster()


getController

AbstractController getController()


getCurrentSize

java.lang.Integer getCurrentSize()
Returns:
the current size of the group.


getFactory

ConfigurableEntityFactory getFactory()


resize

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


restart

void restart()


start

void start(java.util.Collection locations)


stop

void stop()


 

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