Brooklyn

brooklyn.policy.loadbalancing
[Java] Class BalanceableWorkerPoolImpl

java.lang.Object
  brooklyn.entity.basic.AbstractEntity
      brooklyn.policy.loadbalancing.BalanceableWorkerPoolImpl
All Implemented Interfaces:
BalanceableWorkerPool

public class BalanceableWorkerPoolImpl
extends AbstractEntity

Represents an elastic group of "container" entities, each of which is capable of hosting "item" entities that perform work and consume the container's available resources (e.g. CPU or bandwidth). Auto-scaling and load-balancing policies can be attached to this pool to provide dynamic elasticity based on workrates reported by the individual item entities.


Field Summary
 
Fields inherited from class AbstractEntity
EFFECTOR_ADDED, EFFECTOR_CHANGED, EFFECTOR_REMOVED, LOG, POLICY_ADDED, POLICY_REMOVED, SENSOR_ADDED, SENSOR_REMOVED, _subscriptionTracker, managementSupport, tempWorkings
 
Constructor Summary
BalanceableWorkerPoolImpl()

 
Method Summary
Group getContainerGroup()

java.lang.Integer getCurrentSize()

Group getItemGroup()

java.lang.Integer resize(java.lang.Integer desiredSize)

void setContents(Group containerGroup, Group itemGroup)

void setResizable(Resizable resizable)

 
Methods inherited from class AbstractEntity
addChild, addChild, addEnricher, addGroup, addLocations, addPolicy, clearLocations, clearParent, configure, configure, configure, configure, configure, configure, destroy, emit, emitInternal, equals, finalize, firstLocation, getAllAttributes, getAllConfig, getApplication, getApplicationId, getAttribute, getAttributeByNameParts, getChildren, getConfig, getConfig, getConfig, getConfig, getConfigMap, getCreationTime, getDisplayName, getEffector, getEnrichers, getEntityManager, getEntityType, getEntityTypeName, getExecutionContext, getGroups, getIconUrl, getId, getLocations, getManagementContext, getManagementSupport, getMutableEntityType, getParent, getPolicies, getProxy, getProxyIfAvailable, getRebindSupport, getSubscriptionContext, getSubscriptionTracker, hashCode, init, invalidateReferences, invoke, invoke, invoke, isLegacyConstruction, onManagementBecomingMaster, onManagementNoLongerMaster, onManagementStarted, onManagementStarting, onManagementStopped, refreshInheritedConfig, removeAllEnrichers, removeAllPolicies, removeAttribute, removeChild, removeEnricher, removeLocations, removePolicy, setApplication, setAttribute, setAttribute, setAttributeWithoutPublishing, setConfig, setConfig, setConfig, setConfig, setConfig, setConfig, setConfigEvenIfOwned, setConfigEvenIfOwned, setConfigIfValNonNull, setConfigIfValNonNull, setDisplayName, setManagementContext, setParent, setProxy, subscribe, subscribeToChildren, subscribeToMembers, toMetadataRecord, toString, toStringHelper, unsubscribe, unsubscribe
 

Constructor Detail

BalanceableWorkerPoolImpl

public BalanceableWorkerPoolImpl()


 
Method Detail

getContainerGroup

public Group getContainerGroup()


getCurrentSize

public java.lang.Integer getCurrentSize()


getItemGroup

public Group getItemGroup()


resize

throw new UnsupportedOperationException("Container group is not resizable, and no resizable supplied: "+containerGroup+" of type "+(containerGroup != null ? containerGroup.getClass().getCanonicalName() : null));
public java.lang.Integer resize(java.lang.Integer desiredSize)


setContents

this.itemGroup = itemGroup;
public void setContents(Group containerGroup, Group itemGroup)


setResizable

}
public void setResizable(Resizable resizable)


 

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