public interface EntityInternal extends BrooklynObjectInternal, EntityLocal, Rebindable
| Modifier and Type | Interface and Description |
|---|---|
static interface |
EntityInternal.EnricherSupportInternal |
static interface |
EntityInternal.FeedSupport |
static interface |
EntityInternal.GroupSupportInternal |
static interface |
EntityInternal.PolicySupportInternal |
static interface |
EntityInternal.SensorSupportInternal |
BrooklynObjectInternal.ConfigurationSupportInternal, BrooklynObjectInternal.RelationSupportInternal<T extends BrooklynObject>, BrooklynObjectInternal.SubscriptionSupportInternalEntity.AdjunctSupport<T extends EntityAdjunct>, Entity.EnricherSupport, Entity.GroupSupport, Entity.PolicySupport, Entity.SensorSupportBrooklynObject.RelationSupport<T extends BrooklynObject>, BrooklynObject.SubscriptionSupport, BrooklynObject.TagSupportConfigurable.ConfigurationSupport| 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.EnricherSupportInternal |
enrichers() |
EntityInternal.FeedSupport |
feeds() |
java.util.Map<AttributeSensor,java.lang.Object> |
getAllAttributes()
Deprecated.
since 0.8.0; use
EntityInternal.SensorSupportInternal.getAll() via code like sensors().getAll(). |
java.util.Map<ConfigKey<?>,java.lang.Object> |
getAllConfig()
Deprecated.
since 0.7.0; instead just use methods on
ConfigurationSupportInternal returned by BrooklynObjectInternal.config(),
e.g. getBag().getAllConfigAsConfigKeyMap(). |
ConfigBag |
getAllConfigBag()
Deprecated.
since 0.7.0; use
BrooklynObjectInternal.config(), such as entity.config().getBag() |
EntityConfigMap |
getConfigMap()
Deprecated.
since 0.7.0; instead just use methods on
ConfigurationSupportInternal returned by BrooklynObjectInternal.config() |
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()
Deprecated.
since 0.7.0; use
BrooklynObjectInternal.config(), such as entity.config().getLocalBag() |
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.
|
EntityInternal.PolicySupportInternal |
policies() |
void |
refreshInheritedConfig()
Deprecated.
since 0.7.0; use
BrooklynObjectInternal.config(), such as entity.config().refreshInheritedConfig() |
BrooklynObjectInternal.RelationSupportInternal<Entity> |
relations()
Relations specify a typed, directed connection between two entities.
|
void |
removeAttribute(AttributeSensor<?> attribute)
Deprecated.
since 0.8.0; use
EntityInternal.SensorSupportInternal.remove(AttributeSensor) via code like sensors().remove(attribute). |
void |
removeLocations(java.util.Collection<? extends Location> locations) |
void |
requestPersist()
Can be called to request that the entity be persisted.
|
EntityInternal.SensorSupportInternal |
sensors() |
<T> T |
setAttributeWithoutPublishing(AttributeSensor<T> sensor,
T val)
Deprecated.
since 0.8.0; use
EntityInternal.SensorSupportInternal.setWithoutPublishing(AttributeSensor, Object) via code like sensors().setWithoutPublishing(attribute, val). |
java.util.Map<java.lang.String,java.lang.String> |
toMetadataRecord() |
config, setCatalogItemId, subscriptionsemit, getConfig, getConfig, modifyAttribute, removeAllEnrichers, removeAllPolicies, setAttribute, setConfig, setConfig, setConfig, setConfig, subscribe, subscribeToChildren, subscribeToMembers, unsubscribe, unsubscribeaddChild, addChild, addEnricher, addEnricher, addFeed, addGroup, addPolicy, addPolicy, clearParent, getApplication, getApplicationId, getAttribute, getChildren, getConfig, getConfigRaw, getConfigRaw, getCreationTime, getDisplayName, getEnrichers, getEntityType, getGroups, getIconUrl, getId, getLocations, getParent, getPolicies, groups, invoke, removeChild, removeEnricher, removeGroup, removePolicy, setDisplayName, setParentgetCatalogItemId, tagsgetConfigvoid addLocations(@Nullable
java.util.Collection<? extends Location> locations)
void removeLocations(java.util.Collection<? extends Location> locations)
void clearLocations()
<T> T setAttributeWithoutPublishing(AttributeSensor<T> sensor, T val)
EntityInternal.SensorSupportInternal.setWithoutPublishing(AttributeSensor, Object) via code like sensors().setWithoutPublishing(attribute, val).@Deprecated EntityConfigMap getConfigMap()
ConfigurationSupportInternal returned by BrooklynObjectInternal.config()@Deprecated java.util.Map<ConfigKey<?>,java.lang.Object> getAllConfig()
ConfigurationSupportInternal returned by BrooklynObjectInternal.config(),
e.g. getBag().getAllConfigAsConfigKeyMap().@Deprecated ConfigBag getAllConfigBag()
@Deprecated ConfigBag getLocalConfigBag()
java.util.Map<AttributeSensor,java.lang.Object> getAllAttributes()
EntityInternal.SensorSupportInternal.getAll() via code like sensors().getAll().void removeAttribute(AttributeSensor<?> attribute)
EntityInternal.SensorSupportInternal.remove(AttributeSensor) via code like sensors().remove(attribute).@Deprecated void refreshInheritedConfig()
BrooklynObjectInternal.config(), such as entity.config().refreshInheritedConfig()EntityInternal configure(java.util.Map flags)
EntityManagementSupport getManagementSupport()
void destroy()
ManagementContext getManagementContext()
ExecutionContext getExecutionContext()
EntityDynamicType getMutableEntityType()
Effector<?> getEffector(java.lang.String effectorName)
EntityInternal.FeedSupport feeds()
@Deprecated EntityInternal.FeedSupport getFeedSupport()
feeds()java.util.Map<java.lang.String,java.lang.String> toMetadataRecord()
RebindSupport<EntityMemento> getRebindSupport()
getRebindSupport in interface BrooklynObjectInternalgetRebindSupport in interface RebindableBrooklynObjectInternal.RelationSupportInternal<Entity> relations()
BrooklynObjectrelations in interface BrooklynObjectrelations in interface BrooklynObjectInternalrelations in interface Entityvoid requestPersist()
EntityInternal.SensorSupportInternal sensors()
EntityInternal.PolicySupportInternal policies()
EntityInternal.EnricherSupportInternal enrichers()