Brooklyn

brooklyn.demo
[Java] Class WebClusterExample

java.lang.Object
  brooklyn.entity.basic.AbstractEntity
      brooklyn.entity.basic.AbstractApplication
          brooklyn.demo.WebClusterExample

public 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.


Field Summary
static java.lang.String DEFAULT_LOCATION

static Logger LOG

static java.lang.String WAR_PATH

 
Fields inherited from class AbstractApplication
log
 
Fields inherited from class AbstractEntity
EFFECTOR_ADDED, EFFECTOR_CHANGED, EFFECTOR_REMOVED, LOG, POLICY_ADDED, POLICY_REMOVED, SENSOR_ADDED, SENSOR_REMOVED, _subscriptionTracker, managementSupport, tempWorkings
 
Method Summary
void init()

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

 
Methods inherited from class AbstractApplication
getApplication, init, onManagementStopped, postStart, preStart, restart, setApplication, setParent, start, stop
 
Methods inherited from class AbstractEntity
addChild, addChild, addEnricher, addGroup, addLocations, addPolicy, clearLocations, clearParent, configure, configure, configure, configure, configure, configure, destroy, emit, emitInternal, equals, finalize, firstLocation, getAllAttributes, getAllConfig, getApplication, getApplicationId, getAttribute, getAttributeByNameParts, getChildren, getConfig, getConfig, getConfig, getConfig, getConfigMap, getCreationTime, getDisplayName, getEffector, getEnrichers, getEntityManager, getEntityType, getEntityTypeName, getExecutionContext, getGroups, getIconUrl, getId, getLocations, getManagementContext, getManagementSupport, getMutableEntityType, getParent, getPolicies, getProxy, getProxyIfAvailable, getRebindSupport, getSubscriptionContext, getSubscriptionTracker, hashCode, init, invalidateReferences, invoke, invoke, invoke, isLegacyConstruction, onManagementBecomingMaster, onManagementNoLongerMaster, onManagementStarted, onManagementStarting, onManagementStopped, refreshInheritedConfig, removeAllEnrichers, removeAllPolicies, removeAttribute, removeChild, removeEnricher, removeLocations, removePolicy, setApplication, setAttribute, setAttribute, setAttributeWithoutPublishing, setConfig, setConfig, setConfig, setConfig, setConfig, setConfig, setConfigEvenIfOwned, setConfigEvenIfOwned, setConfigIfValNonNull, setConfigIfValNonNull, setDisplayName, setManagementContext, setParent, setProxy, subscribe, subscribeToChildren, subscribeToMembers, toMetadataRecord, toString, toStringHelper, unsubscribe, unsubscribe
 

Field Detail

DEFAULT_LOCATION

public static final java.lang.String DEFAULT_LOCATION


LOG

public static final Logger LOG


WAR_PATH

public static final java.lang.String WAR_PATH


 
Method Detail

init

@Override
public void init()


main

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


 

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