public class WebClusterDatabaseExampleApp
extends brooklyn.entity.basic.AbstractApplication
implements brooklyn.entity.basic.StartableApplication
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!
brooklyn.entity.basic.AbstractEntity.BasicConfigurationSupport, brooklyn.entity.basic.AbstractEntity.BasicFeedSupportbrooklyn.basic.AbstractBrooklynObject.BasicTagSupportbrooklyn.basic.BrooklynObject.TagSupportbrooklyn.entity.trait.Configurable.ConfigurationSupportbrooklyn.entity.trait.Startable.RestartEffectorBody, brooklyn.entity.trait.Startable.StartEffectorBody, brooklyn.entity.trait.Startable.StopEffectorBody| Modifier and Type | Field and Description |
|---|---|
static brooklyn.event.AttributeSensor<Integer> |
APPSERVERS_COUNT |
static String |
DB_PASSWORD |
static brooklyn.config.ConfigKey<String> |
DB_SETUP_SQL_URL |
static String |
DB_TABLE |
static String |
DB_USERNAME |
static String |
DEFAULT_DB_SETUP_SQL_URL |
static String |
DEFAULT_LOCATION |
static String |
DEFAULT_WAR_PATH |
static org.slf4j.Logger |
LOG |
static brooklyn.event.AttributeSensor<Double> |
REQUESTS_PER_SECOND_IN_WINDOW |
static brooklyn.event.AttributeSensor<String> |
ROOT_URL |
static brooklyn.config.ConfigKey<Boolean> |
USE_HTTPS |
static brooklyn.config.ConfigKey<String> |
WAR_PATH |
| Constructor and Description |
|---|
WebClusterDatabaseExampleApp() |
| Modifier and Type | Method and Description |
|---|---|
void |
initApp() |
static void |
main(String[] argv) |
doStart, doStop, getApplication, init, initEnrichers, logApplicationLifecycle, onManagementStopped, postStart, preStart, restart, setApplication, setParent, start, stopaddChild, addChild, addEnricher, addEnricher, addFeed, addGroup, addLocations, addPolicy, addPolicy, addTag, clearLocations, clearParent, config, configure, configure, configure, configure, configure, containsTag, destroy, emit, emitInternal, equals, feeds, firstLocation, getAllAttributes, getAllConfig, getAllConfigBag, getApplicationId, getAttribute, getAttributeByNameParts, getChildren, getConfig, getConfig, getConfig, getConfig, getConfigMap, getConfigRaw, getConfigRaw, getCreationTime, getDisplayName, getEffector, getEnrichers, getEntityManager, getEntityType, getEntityTypeName, getExecutionContext, getFeedSupport, getGroups, getIconUrl, getLocalConfigBag, getLocations, getManagementContext, getManagementSupport, getMutableEntityType, getParent, getPolicies, getProxy, getProxyIfAvailable, getRebindSupport, getSubscriptionContext, getSubscriptionTracker, getTags, hashCode, invalidateReferences, invoke, invoke, invoke, modifyAttribute, onManagementBecomingMaster, onManagementNoLongerMaster, onManagementStarted, onManagementStarting, onTagsChanged, refreshInheritedConfig, removeAllEnrichers, removeAllPolicies, removeAttribute, removeChild, removeEnricher, removeGroup, removeLocations, removePolicy, removeTag, requestPersist, resetProxy, setAttribute, setAttribute, setAttributeWithoutPublishing, setConfig, setConfig, setConfig, setConfig, setConfig, setConfig, setConfigEvenIfOwned, setConfigEvenIfOwned, setConfigIfValNonNull, setConfigIfValNonNull, setDefaultDisplayName, setDisplayName, setManagementContext, setProxy, subscribe, subscribeToChildren, subscribeToMembers, toMetadataRecord, toString, toStringHelper, unsubscribe, unsubscribeconfigure, getCatalogItemId, getId, getTagSupport, isLegacyConstruction, isRebinding, rebind, setCatalogItemId, tagsclone, finalize, getClass, notify, notifyAll, wait, wait, waitaddChild, addChild, addEnricher, addEnricher, addFeed, addGroup, addPolicy, addPolicy, addTag, clearParent, containsTag, getApplication, getApplicationId, getAttribute, getChildren, getConfig, getConfig, getConfigRaw, getConfigRaw, getCreationTime, getDisplayName, getEnrichers, getEntityType, getGroups, getIconUrl, getId, getLocations, getParent, getPolicies, getTags, invoke, removeChild, removeEnricher, removeGroup, removePolicy, removeTag, setParentpublic static final org.slf4j.Logger LOG
public static final String DEFAULT_LOCATION
public static final String DEFAULT_WAR_PATH
public static final brooklyn.config.ConfigKey<String> WAR_PATH
public static final brooklyn.config.ConfigKey<Boolean> USE_HTTPS
public static final String DEFAULT_DB_SETUP_SQL_URL
public static final brooklyn.config.ConfigKey<String> DB_SETUP_SQL_URL
public static final String DB_TABLE
public static final String DB_USERNAME
public static final String DB_PASSWORD
public static final brooklyn.event.AttributeSensor<Integer> APPSERVERS_COUNT
public static final brooklyn.event.AttributeSensor<Double> REQUESTS_PER_SECOND_IN_WINDOW
public static final brooklyn.event.AttributeSensor<String> ROOT_URL
public void initApp()
initApp in class brooklyn.entity.basic.AbstractApplicationpublic static void main(String[] argv)
Copyright © 2012–2015 The Apache Software Foundation. All rights reserved.