@Beta public interface EntityInternal extends BrooklynObjectInternal, EntityLocal, Rebindable
Modifier and Type | Interface and Description |
---|---|
static interface |
EntityInternal.FeedSupport |
BrooklynObject.TagSupport
Modifier and Type | Method and Description |
---|---|
void |
addLocations(java.util.Collection<? extends Location> locations) |
void |
clearLocations() |
EntityInternal |
configure(java.util.Map flags)
Must be called before the entity is started.
|
void |
destroy()
Should be invoked at end-of-life to clean up the item.
|
EntityInternal.FeedSupport |
feeds() |
java.util.Map<AttributeSensor,java.lang.Object> |
getAllAttributes() |
java.util.Map<ConfigKey<?>,java.lang.Object> |
getAllConfig() |
ConfigBag |
getAllConfigBag()
Returns a read-only view of all the config key/value pairs on this entity, backed by a string-based map,
including config names that did not match anything on this entity.
|
EntityConfigMap |
getConfigMap() |
Effector<?> |
getEffector(java.lang.String effectorName)
returns the effector registered against a given name
|
ExecutionContext |
getExecutionContext()
Returns the task execution context for the entity.
|
EntityInternal.FeedSupport |
getFeedSupport()
Deprecated.
since 0.7.0-M2; use
feeds() |
ConfigBag |
getLocalConfigBag()
Returns a read-only view of the local (i.e.
|
ManagementContext |
getManagementContext()
Returns the management context for the entity.
|
EntityManagementSupport |
getManagementSupport() |
EntityDynamicType |
getMutableEntityType()
returns the dynamic type corresponding to the type of this entity instance
|
RebindSupport<EntityMemento> |
getRebindSupport()
Users are strongly discouraged from calling or overriding this method.
|
SubscriptionContext |
getSubscriptionContext() |
void |
refreshInheritedConfig() |
void |
removeAttribute(AttributeSensor<?> attribute) |
void |
removeLocations(java.util.Collection<? extends Location> locations) |
void |
requestPersist()
Can be called to request that the entity be persisted.
|
<T> T |
setAttributeWithoutPublishing(AttributeSensor<T> sensor,
T val)
Like
EntityLocal.setAttribute(AttributeSensor, Object) , except does not publish an attribute-change event. |
java.util.Map<java.lang.String,java.lang.String> |
toMetadataRecord() |
setCatalogItemId
emit, getConfig, getConfig, modifyAttribute, removeAllEnrichers, removeAllPolicies, setAttribute, setConfig, setConfig, setConfig, setConfig, setDisplayName, subscribe, subscribeToChildren, subscribeToMembers, unsubscribe, unsubscribe
addChild, addChild, addEnricher, 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, removeChild, removeEnricher, removeGroup, removePolicy, removeTag, setParent
getCatalogItemId, getTagSupport, tags
void addLocations(java.util.Collection<? extends Location> locations)
void removeLocations(java.util.Collection<? extends Location> locations)
void clearLocations()
<T> T setAttributeWithoutPublishing(AttributeSensor<T> sensor, T val)
EntityLocal.setAttribute(AttributeSensor, Object)
, except does not publish an attribute-change event.EntityConfigMap getConfigMap()
@Beta java.util.Map<ConfigKey<?>,java.lang.Object> getAllConfig()
@Beta ConfigBag getAllConfigBag()
@Beta ConfigBag getLocalConfigBag()
@Beta java.util.Map<AttributeSensor,java.lang.Object> getAllAttributes()
@Beta void removeAttribute(AttributeSensor<?> attribute)
@Beta void refreshInheritedConfig()
@Beta EntityInternal configure(java.util.Map flags)
EntityManagementSupport getManagementSupport()
@Beta void destroy()
ManagementContext getManagementContext()
ExecutionContext getExecutionContext()
SubscriptionContext getSubscriptionContext()
@Beta EntityDynamicType getMutableEntityType()
@Beta Effector<?> getEffector(java.lang.String effectorName)
EntityInternal.FeedSupport feeds()
@Deprecated EntityInternal.FeedSupport getFeedSupport()
feeds()
java.util.Map<java.lang.String,java.lang.String> toMetadataRecord()
@Beta RebindSupport<EntityMemento> getRebindSupport()
getRebindSupport
in interface Rebindable
void requestPersist()