Brooklyn

brooklyn.entity.proxy
[Java] Class LoadBalancerCluster

java.lang.Object
  groovy.lang.GroovyObjectSupport
      brooklyn.entity.basic.AbstractEntity
          brooklyn.entity.basic.AbstractGroup
              brooklyn.entity.group.DynamicCluster
                  brooklyn.entity.proxy.LoadBalancerCluster
All Implemented Interfaces:
LoadBalancer

public class LoadBalancerCluster
extends DynamicCluster

A cluster of load balancers, where configuring the cluster (through the LoadBalancer interface) will configure all load balancers in the cluster. Config keys (such as LoadBalancer.serverPool and LoadBalancer.urlMappings) are automatically inherited by the children of the load balancer cluster. It is through that mechanism that configuration changes on the cluster will be applied to all child load balancers (i.e. by them all sharing the same serverPool and urlMappings etc).

Authors:
aled


Field Summary
 
Fields inherited from class DynamicCluster
SERVICE_STATE
 
Fields inherited from class AbstractEntity
LOG, SENSOR_ADDED, SENSOR_REMOVED, _subscriptionTracker, application, attributesInternal, configsInternal, execution, managementContext, managementData, subscription, tempWorkings
 
Constructor Summary
LoadBalancerCluster(java.util.Map flags, Entity owner)

 
Method Summary
protected boolean calculateServiceUp()

Up if running and has at least one load-balancer in the cluster.

void start(java.util.Collection locs)

 
Methods inherited from class DynamicCluster
addNode, calculateServiceUp, getCustomChildFlags, getFactory, removeNode, removeNode, removeOwnedChild, resize, restart, setFactory, setRemovalStrategy, setRemovalStrategy, start, stop, unwrapException, waitForTasksOnEntityStart
 
Methods inherited from class AbstractGroup
addMember, getCurrentSize, getMembers, hasMember, removeMember, setMembers, setMembers
 
Methods inherited from class AbstractEntity
addEnricher, addGroup, addOwnedChild, addPolicy, assertNotYetOwned, clearOwner, configure, configure, destroy, emit, emitInternal, firstLocation, getAllConfig, getApplication, getApplicationId, getAttribute, getAttributeByNameParts, getConfig, getConfig, getConfig, getConfig, getConfigMap, getEffector, getEnrichers, getEntityType, getExecutionContext, getGroups, getLocations, getManagementContext, getMutableEntityType, getOwnedChildren, getOwner, getPolicies, getSubscriptionContext, getSubscriptionTracker, hasEverBeenManaged, invalidate, invoke, invoke, invokeFromJava, invokeMethod, onManagementBecomingMaster, onManagementNoLongerMaster, refreshInheritedConfig, refreshInheritedConfigOfChildren, removeAllEnrichers, removeAllPolicies, removeAttribute, removeEnricher, removeOwnedChild, removePolicy, setApplication, setAttribute, setAttribute, setBeingManaged, setConfig, setConfig, setConfigEvenIfOwned, setConfigEvenIfOwned, setConfigIfValNonNull, setConfigIfValNonNull, setOwner, subscribe, subscribeToChildren, subscribeToMembers, toString, toStringFieldsToInclude, unsubscribe, unsubscribe
 
Methods inherited from class groovy.lang.GroovyObjectSupport
groovy.lang.GroovyObjectSupport#setProperty(java.lang.String, java.lang.Object), groovy.lang.GroovyObjectSupport#getProperty(java.lang.String), groovy.lang.GroovyObjectSupport#getMetaClass(), groovy.lang.GroovyObjectSupport#setMetaClass(groovy.lang.MetaClass), groovy.lang.GroovyObjectSupport#invokeMethod(java.lang.String, java.lang.Object), groovy.lang.GroovyObjectSupport#wait(), groovy.lang.GroovyObjectSupport#wait(long), groovy.lang.GroovyObjectSupport#wait(long, int), groovy.lang.GroovyObjectSupport#equals(java.lang.Object), groovy.lang.GroovyObjectSupport#toString(), groovy.lang.GroovyObjectSupport#hashCode(), groovy.lang.GroovyObjectSupport#getClass(), groovy.lang.GroovyObjectSupport#notify(), groovy.lang.GroovyObjectSupport#notifyAll()
 

Constructor Detail

LoadBalancerCluster

public LoadBalancerCluster(java.util.Map flags, Entity owner)


 
Method Detail

calculateServiceUp

@Override
protected boolean calculateServiceUp()
Up if running and has at least one load-balancer in the cluster. TODO Could also look at service_up of each load-balancer, but currently does not do that.


start

public void start(java.util.Collection locs)


 

Brooklyn Multi-Cloud Application Management Platform
brooklyncentral.github.com. Apache License. © 2012.