| 
 | Brooklyn | |||||||
| FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectbrooklyn.entity.basic.AbstractEntity
brooklyn.entity.basic.AbstractApplication
com.acme.sample.brooklyn.sample.app.ClusterWebServerDatabaseSample
@Catalog(name="Elastic Java Web + DB",
    description="Deploys a WAR to a load-balanced elastic Java AppServer cluster, " +
        "with an auto-scaling policy, " +
        "wired to a database initialized with the provided SQL; " +
        "defaults to a 'Hello World' chatroom app.",
    iconUrl="classpath://com/acme/sample/brooklyn/sample-icon.png")
public class ClusterWebServerDatabaseSample
extends AbstractApplication
This sample builds a 3-tier application with an elastic app-server cluster, and it sets it up for use in the Brooklyn catalog.
Note that root access (and xcode etc) may be required to install nginx.
| Field Summary | |
|---|---|
| static java.lang.String | DB_PASSWORD | 
| static ConfigKey | DB_SETUP_SQL_URL | 
| static java.lang.String | DB_TABLE | 
| static java.lang.String | DB_USERNAME | 
| static java.lang.String | DEFAULT_DB_SETUP_SQL_URL | 
| static java.lang.String | DEFAULT_WAR_URL | 
| static Logger | LOG | 
| static ConfigKey | WAR_URL | 
| 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()Initialize our application. | 
| Methods inherited from class AbstractApplication | |
|---|---|
| getApplication, init, onManagementStopped, postStart, preStart, restart, setApplication, setParent, start, stop | 
| Field Detail | 
|---|
public static final java.lang.String DB_PASSWORD
public static final ConfigKey DB_SETUP_SQL_URL
public static final java.lang.String DB_TABLE
public static final java.lang.String DB_USERNAME
public static final java.lang.String DEFAULT_DB_SETUP_SQL_URL
public static final java.lang.String DEFAULT_WAR_URL
public static final Logger LOG
"app.war", "URL to the application archive which should be deployed", DEFAULT_WAR_URL); public static final ConfigKey WAR_URL
| Method Detail | 
|---|
ControlledDynamicWebAppCluster web = addChild( public void init()
Brooklyn Multi-Cloud Application Management Platform 
 brooklyncentral.github.com. Apache License. © 2012.