public class WebClusterDatabaseExampleApp extends AbstractApplication implements 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!
BrooklynObject.TagSupport
Configurable.ConfigurationSupport
Startable.RestartEffectorBody, Startable.StartEffectorBody, Startable.StopEffectorBody
EntityInternal.FeedSupport
BrooklynObjectInternal.ConfigurationSupportInternal
Modifier and Type | Field and Description |
---|---|
static AttributeSensor<java.lang.Integer> |
APPSERVERS_COUNT |
static java.lang.String |
DB_PASSWORD |
static ConfigKey<java.lang.String> |
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 org.slf4j.Logger |
LOG |
static AttributeSensor<java.lang.Double> |
REQUESTS_PER_SECOND_IN_WINDOW |
static AttributeSensor<java.lang.String> |
ROOT_URL |
static ConfigKey<java.lang.Boolean> |
USE_HTTPS |
static ConfigKey<java.lang.String> |
WAR_PATH |
log
CHILD_ADDED, CHILD_REMOVED, EFFECTOR_ADDED, EFFECTOR_CHANGED, EFFECTOR_REMOVED, LOCATION_ADDED, LOCATION_REMOVED, POLICY_ADDED, POLICY_REMOVED, SENSOR_ADDED, SENSOR_REMOVED
RESTART, SERVICE_UP, START, STOP
Constructor and Description |
---|
WebClusterDatabaseExampleApp() |
Modifier and Type | Method and Description |
---|---|
void |
initApp() |
static void |
main(java.lang.String[] argv) |
getApplication, init, onManagementStopped, postStart, preStart, restart, setParent, start, stop
addChild, 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, getEntityType, getExecutionContext, getFeedSupport, getGroups, getIconUrl, getLocalConfigBag, getLocations, getManagementContext, getManagementSupport, getMutableEntityType, getParent, getPolicies, getProxy, getProxyIfAvailable, getRebindSupport, getSubscriptionContext, getTags, hashCode, invalidateReferences, invoke, invoke, invoke, modifyAttribute, onManagementBecomingMaster, onManagementNoLongerMaster, onManagementStarted, onManagementStarting, refreshInheritedConfig, removeAllEnrichers, removeAllPolicies, removeAttribute, removeChild, removeEnricher, removeGroup, removeLocations, removePolicy, removeTag, requestPersist, resetProxy, setAttribute, setAttribute, setAttributeWithoutPublishing, setConfig, setConfig, setConfig, setConfig, setConfig, setConfig, setConfigEvenIfOwned, setConfigEvenIfOwned, setDisplayName, setManagementContext, setProxy, subscribe, subscribeToChildren, subscribeToMembers, toMetadataRecord, toString, unsubscribe, unsubscribe
getCatalogItemId, getId, getTagSupport, rebind, setCatalogItemId, tags
getManagementContext
addChild, 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, setParent
getCatalogItemId, getTagSupport, tags
config, setConfig
setCatalogItemId
public static final org.slf4j.Logger LOG
public static final java.lang.String DEFAULT_LOCATION
public static final java.lang.String DEFAULT_WAR_PATH
public static final ConfigKey<java.lang.String> WAR_PATH
public static final ConfigKey<java.lang.Boolean> USE_HTTPS
public static final java.lang.String DEFAULT_DB_SETUP_SQL_URL
public static final ConfigKey<java.lang.String> 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 DB_PASSWORD
public static final AttributeSensor<java.lang.Integer> APPSERVERS_COUNT
public static final AttributeSensor<java.lang.Double> REQUESTS_PER_SECOND_IN_WINDOW
public static final AttributeSensor<java.lang.String> ROOT_URL