Brooklyn

brooklyn.entity.group
[Java] Class DynamicFabricImpl

java.lang.Object
  groovy.lang.GroovyObjectSupport
      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
LOG, POLICY_ADDED, POLICY_REMOVED, SENSOR_ADDED, SENSOR_REMOVED, _subscriptionTracker, attributesInternal, configsInternal, managementSupport, tempWorkings
 
Constructor Summary
DynamicFabricImpl()

DynamicFabricImpl(java.util.Map properties)

DynamicFabricImpl(Entity parent)

DynamicFabricImpl(java.util.Map properties, Entity parent)

Instantiate a new DynamicFabric.

 
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()

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, removeMember, setMembers, setMembers
 
Methods inherited from class AbstractEntity
addChild, addChild, addEnricher, addGroup, addLocations, addOwnedChild, addPolicy, assertNotYetOwned, clearOwner, clearParent, configure, configure, configure, configure, configure, createManagementSupport, destroy, emit, emitInternal, equals, finalize, firstLocation, getAllAttributes, getAllConfig, getApplication, getApplicationId, getAttribute, getAttributeByNameParts, getChildren, getChildrenReference, getConfig, getConfig, getConfig, getConfig, getConfigMap, getDisplayName, getEffector, getEnrichers, getEntityManager, getEntityType, getEntityTypeName, getExecutionContext, getGroups, getId, getLocations, getManagementContext, getManagementSupport, getMutableEntityType, getOwnedChildren, getOwnedChildrenReference, getOwner, getParent, getPolicies, getProxy, getProxyIfAvailable, getRebindSupport, getSubscriptionContext, getSubscriptionTracker, hasEverBeenManaged, hashCode, init, invalidateReferences, invoke, invoke, invokeFromJava, invokeMethod, isLegacyConstruction, onManagementBecomingMaster, onManagementNoLongerMaster, onManagementStarted, onManagementStarting, refreshInheritedConfig, refreshInheritedConfigOfChildren, removeAllEnrichers, removeAllPolicies, removeAttribute, removeChild, removeEnricher, removeLocations, removeOwnedChild, removePolicy, setApplication, setAttribute, setAttribute, setAttributeWithoutPublishing, setBeingManaged, setConfig, setConfig, setConfig, setConfig, setConfig, setConfig, setConfigEvenIfOwned, setConfigEvenIfOwned, setConfigIfValNonNull, setConfigIfValNonNull, setDisplayName, setManagementContext, setOwner, setParent, setProxy, subscribe, subscribeToChildren, subscribeToMembers, toString, toStringFieldsToInclude, toStringHelper, 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

DynamicFabricImpl

public DynamicFabricImpl()


DynamicFabricImpl

public DynamicFabricImpl(java.util.Map properties)


DynamicFabricImpl

public DynamicFabricImpl(Entity parent)


DynamicFabricImpl

public DynamicFabricImpl(java.util.Map properties, Entity parent)
Instantiate a new DynamicFabric. Valid properties are:
Parameters:
properties - the properties of the fabric and any new entity.
parent - the entity that owns this fabric (optional)


 
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

@Override
public java.lang.Integer getFabricSize()


getFactory

protected EntityFactory getFactory()


getMemberSpec

protected EntitySpec getMemberSpec()


removeChild

@Override
public boolean removeChild(Entity child)


restart

@Override
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

@Override
public void stop()


waitForTasksOnStart

protected void waitForTasksOnStart(java.util.Map tasks)


 

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