Brooklyn

brooklyn.entity.group
[Java] Class DynamicFabricImpl

java.lang.Object
  brooklyn.entity.basic.AbstractEntity
      brooklyn.entity.basic.AbstractGroupImpl
          brooklyn.entity.group.DynamicFabricImpl
All Implemented Interfaces:
DynamicFabric

public class DynamicFabricImpl
extends AbstractGroupImpl

When a dynamic fabric is started, it starts an entity in each of its locations. This entity will be the parent of each of the started 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
DynamicFabricImpl()

 
Method Summary
protected Entity addCluster(Location location)

protected Entity createCluster(Location location, java.util.Map flags)

protected java.util.Map getCustomChildFlags()

protected java.lang.String getDisplayNamePrefix()

protected java.lang.String getDisplayNameSuffix()

java.lang.Integer getFabricSize()

protected EntityFactory getFactory()

protected EntitySpec getMemberSpec()

void init()

boolean removeChild(Entity child)

void restart()

void setFactory(EntityFactory factory)

void setMemberSpec(EntitySpec memberSpec)

void start(java.util.Collection locations)

void stop()

protected void waitForTasksOnStart(java.util.Map tasks)

 
Methods inherited from class AbstractGroupImpl
addMember, getCurrentSize, getMembers, hasMember, init, removeMember, setManagementContext, setMembers, setMembers
 
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

DynamicFabricImpl

public DynamicFabricImpl()


 
Method Detail

addCluster

protected Entity addCluster(Location location)


createCluster

protected Entity createCluster(Location location, java.util.Map flags)


getCustomChildFlags

protected java.util.Map getCustomChildFlags()


getDisplayNamePrefix

protected java.lang.String getDisplayNamePrefix()


getDisplayNameSuffix

protected java.lang.String getDisplayNameSuffix()


getFabricSize

result  += GroovyJavaMethods.elvis(child.getAttribute(Changeable.GROUP_SIZE), 0);
public java.lang.Integer getFabricSize()


getFactory

protected EntityFactory getFactory()


getMemberSpec

protected EntitySpec getMemberSpec()


init

@Override
public void init()


removeChild

removeMember(child);
public boolean removeChild(Entity child)


restart

public void restart()


setFactory

@Override
public void setFactory(EntityFactory factory)


setMemberSpec

@Override
public void setMemberSpec(EntitySpec memberSpec)


start

@Override
public void start(java.util.Collection locations)


stop

Iterable stoppableChildren = Iterables.filter(getChildren(), Predicates.instanceOf(Startable.class));
public void stop()


waitForTasksOnStart

protected void waitForTasksOnStart(java.util.Map tasks)


 

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