public abstract class AbstractControllerImpl extends SoftwareProcessImpl implements AbstractController
Cluster
.Modifier and Type | Class and Description |
---|---|
static class |
AbstractControllerImpl.ServerPoolMemberTrackerPolicy |
SoftwareProcess.ChildStartableMode, SoftwareProcess.RestartSoftwareParameters, SoftwareProcess.StopSoftwareParameters
BrooklynObject.TagSupport
Configurable.ConfigurationSupport
Startable.RestartEffectorBody, Startable.StartEffectorBody, Startable.StopEffectorBody
EntityInternal.FeedSupport
BrooklynObjectInternal.ConfigurationSupportInternal
CHILD_ADDED, CHILD_REMOVED, EFFECTOR_ADDED, EFFECTOR_CHANGED, EFFECTOR_REMOVED, LOCATION_ADDED, LOCATION_REMOVED, POLICY_ADDED, POLICY_REMOVED, SENSOR_ADDED, SENSOR_REMOVED
DOMAIN_NAME, SERVICE_UP_URL_PATH, SSL_CONFIG
ADDRESS, CHILDREN_STARTABLE_MODE, CUSTOMIZE_LATCH, DOWNLOAD_ADDON_URLS, DOWNLOAD_URL, ENTITY_STARTED, EXPANDED_INSTALL_DIR, HOSTNAME, INSTALL_DIR, INSTALL_FILES, INSTALL_LATCH, INSTALL_RESOURCES_LATCH, INSTALL_TEMPLATES, INSTALL_UNIQUE_LABEL, LAUNCH_LATCH, MAXIMUM_REBIND_SENSOR_CONNECT_DELAY, PID_FILE, POST_INSTALL_COMMAND, POST_LAUNCH_COMMAND, PRE_INSTALL_COMMAND, PRE_INSTALL_FILES, PRE_INSTALL_TEMPLATES, PRE_LAUNCH_COMMAND, PROVISIONING_LOCATION, PROVISIONING_PROPERTIES, REQUIRED_OPEN_LOGIN_PORTS, RUN_DIR, RUNTIME_FILES, RUNTIME_RESOURCES_LATCH, RUNTIME_TEMPLATES, SERVICE_PROCESS_IS_RUNNING, SERVICE_STATE_ACTUAL, SERVICE_STATE_EXPECTED, SETUP_LATCH, SHELL_ENVIRONMENT, SKIP_ENTITY_START_IF_RUNNING, SKIP_INSTALLATION, START_LATCH, START_TIMEOUT, SUBNET_ADDRESS, SUBNET_HOSTNAME, SUGGESTED_INSTALL_DIR, SUGGESTED_RUN_DIR, SUGGESTED_VERSION
HOST_AND_PORT_SENSOR, HOSTNAME, HOSTNAME_SENSOR, MAIN_URI, PORT_NUMBER_SENSOR, PROTOCOL, PROXY_HTTP_PORT, PROXY_HTTPS_PORT, RELOAD, ROOT_URL, SERVER_POOL, SERVER_POOL_TARGETS, UPDATE, URL_MAPPINGS
RESTART, SERVICE_UP, START, STOP
Constructor and Description |
---|
AbstractControllerImpl() |
AbstractControllerImpl(Entity parent) |
AbstractControllerImpl(Entity parent,
Cluster cluster) |
AbstractControllerImpl(java.util.Map<?,?> properties) |
AbstractControllerImpl(java.util.Map<?,?> properties,
Entity parent) |
AbstractControllerImpl(java.util.Map<?,?> properties,
Entity parent,
Cluster cluster) |
Modifier and Type | Method and Description |
---|---|
void |
bind(java.util.Map<?,?> flags)
Opportunity to do late-binding of the cluster that is being controlled.
|
java.lang.String |
getDomain()
returns primary domain this controller responds to, or null if it responds to all domains
|
AttributeSensor<java.lang.String> |
getHostAndPortSensor() |
AttributeSensor<java.lang.String> |
getHostnameSensor() |
java.lang.Integer |
getPort() |
AttributeSensor<java.lang.Integer> |
getPortNumberSensor() |
java.lang.String |
getProtocol() |
java.util.Set<java.lang.String> |
getServerPoolAddresses() |
ProxySslConfig |
getSslConfig() |
java.lang.String |
getUrl()
primary URL this controller serves, if one can / has been inferred
|
void |
init()
Default entity initialization, just calls
AbstractEntity.initEnrichers() . |
boolean |
isActive() |
boolean |
isSsl() |
void |
onManagementNoLongerMaster()
Invoked by
ManagementContext when this entity becomes mastered at a particular management node,
including the final management end and subsequent management node master-change for this entity. |
abstract void |
reload() |
void |
update() |
Task<?> |
updateAsync() |
void |
updateNeeded() |
checkModifiable, getDriver, getLocalHostname, onManagementStarted, onManagementStarting, rebind, restart, start, stop, waitForEntityStart, waitForServiceUp, waitForServiceUp, waitForServiceUp, waitForServiceUp
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, getApplication, 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, onManagementStopped, 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, setParent, setProxy, subscribe, subscribeToChildren, subscribeToMembers, toMetadataRecord, toString, unsubscribe, unsubscribe
getCatalogItemId, getId, getTagSupport, setCatalogItemId, tags
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
getDriverInterface
setCatalogItemId
public AbstractControllerImpl()
public AbstractControllerImpl(java.util.Map<?,?> properties)
public AbstractControllerImpl(Entity parent)
public AbstractControllerImpl(java.util.Map<?,?> properties, Entity parent)
public void init()
AbstractEntity
AbstractEntity.initEnrichers()
.init
in class SoftwareProcessImpl
public java.util.Set<java.lang.String> getServerPoolAddresses()
getServerPoolAddresses
in interface AbstractController
public void bind(java.util.Map<?,?> flags)
bind
in interface LoadBalancer
public void onManagementNoLongerMaster()
AbstractEntity
ManagementContext
when this entity becomes mastered at a particular management node,
including the final management end and subsequent management node master-change for this entity.onManagementNoLongerMaster
in class AbstractEntity
public boolean isActive()
isActive
in interface AbstractController
public boolean isSsl()
isSsl
in interface AbstractController
public ProxySslConfig getSslConfig()
getSslConfig
in interface AbstractController
public java.lang.String getProtocol()
getProtocol
in interface AbstractController
public java.lang.String getDomain()
getDomain
in interface AbstractController
public java.lang.Integer getPort()
getPort
in interface AbstractController
public java.lang.String getUrl()
getUrl
in interface AbstractController
public AttributeSensor<java.lang.Integer> getPortNumberSensor()
getPortNumberSensor
in interface AbstractController
public AttributeSensor<java.lang.String> getHostnameSensor()
getHostnameSensor
in interface AbstractController
public AttributeSensor<java.lang.String> getHostAndPortSensor()
getHostAndPortSensor
in interface AbstractController
public abstract void reload()
reload
in interface LoadBalancer
public void updateNeeded()
public void update()
update
in interface LoadBalancer
public Task<?> updateAsync()