|
Brooklyn | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | METHOD | DETAIL: FIELD | METHOD |
brooklyn.entity.trait.Startablebrooklyn.entity.rebind.Rebindable
brooklyn.entity.Entity
brooklyn.entity.trait.Identifiable
brooklyn.entity.proxy.LoadBalancer
public interface LoadBalancer extends Entity, Startable
A load balancer that routes requests to set(s) of servers. There is an optional "serverPool" that will have requests routed to it (e.g. as round-robin). This is a group whose members are appropriate servers; membership of that group will be tracked to automatically update the load balancer's configuration as appropriate. There is an optional urlMappings group for defining additional mapping rules. Members of this group (of type UrlMapping) will be tracked, to automatically update the load balancer's configuration. The UrlMappings can give custom routing rules so that specific urls are routed (and potentially re-written) to particular sets of servers.
Field Summary | |
---|---|
static AttributeSensor |
HOSTNAME
|
static BasicAttributeSensorAndConfigKey |
HOSTNAME_SENSOR
sensor for hostname to forward to on target entities |
static BasicAttributeSensorAndConfigKey |
PORT_NUMBER_SENSOR
sensor for port to forward to on target entities |
static BasicAttributeSensorAndConfigKey |
PROTOCOL
|
static PortAttributeSensorAndConfigKey |
PROXY_HTTP_PORT
port where this controller should live |
static MethodEffector |
RELOAD
|
static AttributeSensor |
ROOT_URL
|
ConfigKey |
SERVER_POOL
|
static BasicAttributeSensor |
SERVER_POOL_TARGETS
|
static BasicAttributeSensor |
TARGETS
@deprecated since 0.6; Use SERVER_POOL_TARGETS |
static MethodEffector |
UPDATE
|
ConfigKey |
URL_MAPPINGS
|
Fields inherited from interface Startable | |
---|---|
RESTART, SERVICE_UP, START, STOP |
Method Summary | |
---|---|
void
|
bind(java.util.Map flags)
Opportunity to do late-binding of the cluster that is being controlled. |
void
|
reload()
|
void
|
update()
|
Methods inherited from interface Startable | |
---|---|
restart, start, stop |
Methods inherited from interface Entity | |
---|---|
addChild, addChild, addEnricher, addGroup, addPolicy, clearParent, getApplication, getApplicationId, getAttribute, getChildren, getConfig, getConfig, getCreationTime, getDisplayName, getEnrichers, getEntityType, getGroups, getIconUrl, getId, getLocations, getParent, getPolicies, getRebindSupport, invoke, removeChild, removeEnricher, removePolicy, setParent |
Methods inherited from interface Identifiable | |
---|---|
getId |
Methods inherited from interface Rebindable | |
---|---|
getRebindSupport |
Field Detail |
---|
public static final AttributeSensor HOSTNAME
@SetFromFlag("hostnameSensor") public static final BasicAttributeSensorAndConfigKey HOSTNAME_SENSOR
@SetFromFlag("portNumberSensor") public static final BasicAttributeSensorAndConfigKey PORT_NUMBER_SENSOR
@SetFromFlag("protocol") public static final BasicAttributeSensorAndConfigKey PROTOCOL
@SetFromFlag("port") /** port where this controller should live */ public static final PortAttributeSensorAndConfigKey PROXY_HTTP_PORT
public static final MethodEffector RELOAD
public static final AttributeSensor ROOT_URL
@SetFromFlag("serverPool") public ConfigKey SERVER_POOL
public static final BasicAttributeSensor SERVER_POOL_TARGETS
public static final BasicAttributeSensor TARGETS
public static final MethodEffector UPDATE
@SetFromFlag("urlMappings") public ConfigKey URL_MAPPINGS
Method Detail |
---|
public void bind(java.util.Map flags)
@Effector(description="Forces reload of the configuration") public void reload()
@Effector(description="Updates the entities configuration, and then forces reload of that configuration") public void update()
Brooklyn Multi-Cloud Application Management Platform
brooklyncentral.github.com. Apache License. © 2012.