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!
AbstractEntity.BasicConfigurationSupport, AbstractEntity.BasicEnricherSupport, AbstractEntity.BasicGroupSupport, AbstractEntity.BasicPolicySupport, AbstractEntity.BasicSensorSupport, AbstractEntity.BasicSubscriptionSupport
Entity.AdjunctSupport<T extends EntityAdjunct>, Entity.EnricherSupport, Entity.GroupSupport, Entity.PolicySupport, Entity.SensorSupport
BrooklynObject.RelationSupport<T extends BrooklynObject>, BrooklynObject.SubscriptionSupport, BrooklynObject.TagSupport
Configurable.ConfigurationSupport
Startable.RestartEffectorBody, Startable.StartEffectorBody, Startable.StopEffectorBody
EntityInternal.EnricherSupportInternal, EntityInternal.EntitySubscriptionSupportInternal, EntityInternal.FeedSupport, EntityInternal.GroupSupportInternal, EntityInternal.PolicySupportInternal, EntityInternal.SensorSupportInternal
BrooklynObjectInternal.ConfigurationSupportInternal, BrooklynObjectInternal.RelationSupportInternal<T extends BrooklynObject>, BrooklynObjectInternal.SubscriptionSupportInternal
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 |
APPLICATION_ID, CATALOG_ID, CHILD_ADDED, CHILD_REMOVED, CONFIG_KEY_ADDED, CONFIG_KEY_REMOVED, DEFAULT_DISPLAY_NAME, EFFECTOR_ADDED, EFFECTOR_CHANGED, EFFECTOR_REMOVED, ENTITY_ID, GROUP_ADDED, GROUP_REMOVED, LOCATION_ADDED, LOCATION_REMOVED, POLICY_ADDED, POLICY_REMOVED, SENSOR_ADDED, SENSOR_REMOVED
DESTROY_ON_STOP, RUNNING_QUORUM_CHECK, START_LATCH, UP_QUORUM_CHECK
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, onManagementStarted, onManagementStopped, postStart, preStart, restart, setParent, start, stop
addChild, addChild, addFeed, addLocations, addLocationsWithoutPublishing, clearLocations, clearParent, config, configure, configure, destroy, enrichers, equals, feeds, firstLocation, getApplicationId, getAttribute, getChildren, getConfig, getConfig, getCreationTime, getDisplayName, getEffector, getEntityType, getExecutionContext, getIconUrl, getLocations, getManagementContext, getManagementSupport, getMutableEntityType, getParent, getProxy, getProxyIfAvailable, getRebindSupport, groups, hashCode, invalidateReferences, invoke, invoke, invoke, onManagementBecomingMaster, onManagementNoLongerMaster, onManagementStarting, policies, relations, removeChild, removeLocations, requestPersist, resetProxy, sensors, setConfigEvenIfOwned, setConfigEvenIfOwned, setDisplayName, setManagementContext, setProxy, subscriptions, toMetadataRecord, toString
addSearchPath, getCatalogItemId, getCatalogItemIdSearchPath, getId, rebind, setCatalogItemId, setCatalogItemIdAndSearchPath, stackCatalogItemId, tags
getManagementContext
addChild, addChild, addFeed, clearParent, enrichers, getApplication, getApplicationId, getAttribute, getChildren, getConfig, getCreationTime, getDisplayName, getEntityType, getIconUrl, getId, getLocations, getParent, groups, invoke, policies, relations, removeChild, sensors, setDisplayName, setParent
getCatalogItemId, getCatalogItemIdSearchPath, subscriptions, tags
config, getConfig
restart, start, stop
addSearchPath, setCatalogItemId, setCatalogItemIdAndSearchPath, stackCatalogItemId
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