Brooklyn

brooklyn.demo.legacy
[Groovy] Class WebClusterExample

java.lang.Object
  groovy.lang.GroovyObjectSupport
      brooklyn.entity.basic.AbstractEntity
          brooklyn.entity.basic.AbstractApplication
              brooklyn.demo.legacy.WebClusterExample

@Deprecated
class WebClusterExample
extends AbstractApplication

Launches a clustered and load-balanced set of web servers. Demonstrates syntax, so many of the options used here are the defaults. (So the class could be much simpler, as in WebClusterExampleAlt.)

Requires: -Xmx512m -Xms128m -XX:MaxPermSize=256m and brooklyn-all jar, and this jar or classes dir, on classpath.

deprecated:
in 0.5; see WebClusterExample


Field Summary
static Logger LOG

static java.lang.String WAR_PATH

 
Fields inherited from class AbstractApplication
log
 
Fields inherited from class AbstractEntity
LOG, POLICY_ADDED, POLICY_REMOVED, SENSOR_ADDED, SENSOR_REMOVED, _subscriptionTracker, attributesInternal, configsInternal, managementSupport, tempWorkings
 
Property Summary
static BrooklynProperties config

JBoss7ServerFactory jbossFactory

NginxController nginxController

AutoScalerPolicy policy

ControlledDynamicWebAppCluster web

 
Constructor Summary
WebClusterExample(java.util.Map props = [:])

 
Method Summary
static void main(java.lang.String[] argv)

 
Methods inherited from class AbstractApplication
getApplication, hasManagementContext, init, isDeployed, postStart, preStart, restart, setApplication, setManagementContext, setParent, start, stop
 
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

LOG

public static final Logger LOG


WAR_PATH

public static final java.lang.String WAR_PATH


 
Property Detail

config

static BrooklynProperties config


jbossFactory

JBoss7ServerFactory jbossFactory


nginxController

NginxController nginxController


policy

AutoScalerPolicy policy


web

ControlledDynamicWebAppCluster web


 
Constructor Detail

WebClusterExample

WebClusterExample(java.util.Map props = [:])


 
Method Detail

main

static void main(java.lang.String[] argv)


 

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