public class DynamicFabricImpl extends AbstractGroupImpl implements DynamicFabric
Startable.RestartEffectorBody, Startable.StartEffectorBody, Startable.StopEffectorBodyBrooklynObject.TagSupportConfigurable.ConfigurationSupportEntityInternal.FeedSupportBrooklynObjectInternal.ConfigurationSupportInternalCHILD_ADDED, CHILD_REMOVED, EFFECTOR_ADDED, EFFECTOR_CHANGED, EFFECTOR_REMOVED, LOCATION_ADDED, LOCATION_REMOVED, POLICY_ADDED, POLICY_REMOVED, SENSOR_ADDED, SENSOR_REMOVEDCUSTOM_CHILD_FLAGS, DISPLAY_NAME_PREFIX, DISPLAY_NAME_SUFFIX, FABRIC_SIZE, FACTORY, MEMBER_SPEC, SERVICE_STATE_ACTUALFIRST, FIRST_MEMBER, GROUP_MEMBERS, MEMBER_DELEGATE_CHILDREN, MEMBER_DELEGATE_NAME_FORMAT, RUNNING_QUORUM_CHECK, UP_QUORUM_CHECKGROUP_SIZE, MEMBER_ADDED, MEMBER_REMOVEDRESTART, SERVICE_UP, START, STOP| Constructor and Description |
|---|
DynamicFabricImpl() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Integer |
getFabricSize() |
void |
init()
Default entity initialization, just calls
AbstractEntity.initEnrichers(). |
boolean |
removeChild(Entity child)
Removes the specified child
Entity; its parent will be set to null. |
void |
restart()
Restart the entity.
|
void |
setFactory(EntityFactory<?> factory) |
void |
setMemberSpec(EntitySpec<?> memberSpec) |
void |
start(java.util.Collection<? extends Location> locsO)
Start the entity in the given collection of locations.
|
void |
stop()
Stop the entity.
|
addMember, addMemberChild, addMemberChild, addMemberInternal, getCurrentSize, getMembers, hasMember, removeMember, setManagementContext, setMembers, setMembersaddChild, addChild, addEnricher, addEnricher, addFeed, addGroup, addLocations, addPolicy, addPolicy, addTag, clearLocations, clearParent, config, configure, configure, configure, configure, configure, containsTag, destroy, emit, emitInternal, equals, feeds, firstLocation, getAllAttributes, getAllConfig, getAllConfigBag, getApplication, getApplicationId, getAttribute, getAttributeByNameParts, getChildren, getConfig, getConfig, getConfig, getConfig, getConfigMap, getConfigRaw, getConfigRaw, getCreationTime, getDisplayName, getEffector, getEnrichers, getEntityType, getExecutionContext, getFeedSupport, getGroups, getIconUrl, getLocalConfigBag, getLocations, getManagementContext, getManagementSupport, getMutableEntityType, getParent, getPolicies, getProxy, getProxyIfAvailable, getRebindSupport, getSubscriptionContext, getTags, hashCode, invalidateReferences, invoke, invoke, invoke, modifyAttribute, onManagementBecomingMaster, onManagementNoLongerMaster, onManagementStarted, onManagementStarting, onManagementStopped, refreshInheritedConfig, removeAllEnrichers, removeAllPolicies, removeAttribute, removeEnricher, removeGroup, removeLocations, removePolicy, removeTag, requestPersist, resetProxy, setAttribute, setAttribute, setAttributeWithoutPublishing, setConfig, setConfig, setConfig, setConfig, setConfig, setConfig, setConfigEvenIfOwned, setConfigEvenIfOwned, setDisplayName, setParent, setProxy, subscribe, subscribeToChildren, subscribeToMembers, toMetadataRecord, toString, unsubscribe, unsubscribegetCatalogItemId, getId, getTagSupport, rebind, setCatalogItemId, tagssetMembers, setMembersaddChild, addChild, addMember, addMemberChild, addMemberChild, getCurrentSize, getMembers, hasMember, removeMemberaddEnricher, addEnricher, addFeed, addGroup, addPolicy, addPolicy, addTag, clearParent, containsTag, getApplication, getApplicationId, getAttribute, getChildren, getConfig, getConfig, getConfigRaw, getConfigRaw, getCreationTime, getDisplayName, getEnrichers, getEntityType, getGroups, getIconUrl, getId, getLocations, getParent, getPolicies, getTags, invoke, removeEnricher, removeGroup, removePolicy, removeTag, setParentgetCatalogItemId, getTagSupport, tagsconfig, setConfigsetCatalogItemIdpublic void init()
AbstractEntityAbstractEntity.initEnrichers().init in class AbstractGroupImplpublic void setMemberSpec(EntitySpec<?> memberSpec)
setMemberSpec in interface DynamicFabricpublic void setFactory(EntityFactory<?> factory)
setFactory in interface DynamicFabricpublic void start(java.util.Collection<? extends Location> locsO)
Startable
Some entities may define custom Effector implementations which support
a richer set of parameters. See the entity-specific Startable.START effector declaration.
public void stop()
Startable
Some entities may define custom Effector implementations which support
a richer set of parameters. See the entity-specific Startable.STOP effector declaration.
public void restart()
Startable
Some entities may define custom Effector implementations which support
a richer set of parameters. See the entity-specific Startable.RESTART effector declaration.
public java.lang.Integer getFabricSize()
getFabricSize in interface DynamicFabricpublic boolean removeChild(Entity child)
EntityEntity; its parent will be set to null.removeChild in interface EntityremoveChild in class AbstractEntity