|
Brooklyn | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbrooklyn.entity.basic.AbstractEntity
brooklyn.entity.basic.AbstractApplication
brooklyn.demo.WebClusterDatabaseExampleApp
@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://brooklyn/demo/glossy-3d-blue-web-icon.png") public class WebClusterDatabaseExampleApp extends AbstractApplication
Launches a 3-tier app with nginx, clustered jboss, and mysql.
Includes some advanced features such as KPI / derived sensors, and annotations for use in a catalog.
This variant also increases minimum size to 2. Note the policy min size must have the same value, otherwise it fights with cluster set up trying to reduce the cluster size!
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_LOCATION
|
static java.lang.String |
DEFAULT_WAR_PATH
|
static Logger |
LOG
|
static AttributeSensor |
REQUESTS_PER_SECOND_IN_WINDOW
|
static AttributeSensor |
ROOT_URL
|
static ConfigKey |
USE_HTTPS
|
static ConfigKey |
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 |
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_LOCATION
public static final java.lang.String DEFAULT_WAR_PATH
public static final Logger LOG
public static final AttributeSensor REQUESTS_PER_SECOND_IN_WINDOW
public static final AttributeSensor ROOT_URL
public static final String DEFAULT_DB_SETUP_SQL_URL = "classpath://visitors-creation-script.sql"; public static final ConfigKey USE_HTTPS
public static final ConfigKeyWAR_PATH = ConfigKeys.newConfigKey( public static final ConfigKey WAR_PATH
Method Detail |
---|
.configure(MySqlNode.CREATION_SCRIPT_URL, Entities.getRequiredUrlConfig(this, DB_SETUP_SQL_URL))); public void init()
public static void main(java.lang.String[] argv)
Brooklyn Multi-Cloud Application Management Platform
brooklyncentral.github.com. Apache License. © 2012.