Brooklyn

brooklyn.entity.group
[Java] Class DynamicFabric

java.lang.Object
  groovy.lang.GroovyObjectSupport
      brooklyn.entity.basic.AbstractEntity
          brooklyn.entity.group.DynamicFabric
All Implemented Interfaces:
Fabric, Startable

public class DynamicFabric
extends AbstractEntity

When a dynamic fabric is started, it starts an entity in each of its locations. This entity will be the owner of each of the started entities.


Field Summary
static BasicAttributeSensor FABRIC_SIZE

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

Instantiate a new DynamicFabric.

DynamicFabric(java.util.Map properties)

DynamicFabric(Entity owner)

 
Method Summary
protected Entity addCluster(Location location)

protected java.util.Map getCustomChildFlags()

void restart()

void start(java.util.Collection locations)

void stop()

protected void waitForTasksOnStart(java.util.Map tasks)

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

Field Detail

FABRIC_SIZE

public static final BasicAttributeSensor FABRIC_SIZE


 
Constructor Detail

DynamicFabric

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


DynamicFabric

public DynamicFabric(java.util.Map properties)


DynamicFabric

public DynamicFabric(Entity owner)


 
Method Detail

addCluster

protected Entity addCluster(Location location)


getCustomChildFlags

protected java.util.Map getCustomChildFlags()


restart

public void restart()


start

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


stop

public void stop()


waitForTasksOnStart

protected void waitForTasksOnStart(java.util.Map tasks)


 

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