@Beta public interface EntityInternal extends BrooklynObjectInternal, EntityLocal, Rebindable
Modifier and Type | Interface and Description |
---|---|
static interface |
EntityInternal.EnricherSupportInternal |
static interface |
EntityInternal.EntitySubscriptionSupportInternal |
static interface |
EntityInternal.FeedSupport |
static interface |
EntityInternal.GroupSupportInternal |
static interface |
EntityInternal.PolicySupportInternal |
static interface |
EntityInternal.SensorSupportInternal |
BrooklynObjectInternal.ConfigurationSupportInternal, BrooklynObjectInternal.RelationSupportInternal<T extends BrooklynObject>, BrooklynObjectInternal.SubscriptionSupportInternal
Entity.AdjunctSupport<T extends EntityAdjunct>, Entity.EnricherSupport, Entity.GroupSupport, Entity.PolicySupport, Entity.SensorSupport
BrooklynObject.RelationSupport<T extends BrooklynObject>, BrooklynObject.SubscriptionSupport, BrooklynObject.TagSupport
Configurable.ConfigurationSupport
Modifier and Type | Method and Description |
---|---|
void |
addLocations(java.util.Collection<? extends Location> locations) |
void |
addLocationsWithoutPublishing(java.util.Collection<? extends Location> locations)
Adds the given locations to this entity, but without emitting
AbstractEntity.LOCATION_ADDED
events, and without auto-managing the 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() . |
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() |
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.GroupSupportInternal |
groups() |
EntityInternal.PolicySupportInternal |
policies() |
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) . |
EntityInternal.EntitySubscriptionSupportInternal |
subscriptions()
Subscriptions are the mechanism for receiving notifications of sensor-events (e.g.
|
java.util.Map<java.lang.String,java.lang.String> |
toMetadataRecord() |
config, setCatalogItemId
emit, modifyAttribute, removeAllEnrichers, removeAllPolicies, setAttribute, setConfig, setConfig, setConfig, setConfig, subscribe, subscribeToChildren, subscribeToMembers, unsubscribe, unsubscribe
addChild, addChild, addEnricher, addEnricher, addFeed, addGroup, addPolicy, addPolicy, clearParent, getApplication, getApplicationId, getAttribute, getChildren, getConfig, getCreationTime, getDisplayName, getEnrichers, getEntityType, getGroups, getIconUrl, getId, getLocations, getParent, getPolicies, invoke, removeChild, removeEnricher, removeGroup, removePolicy, setDisplayName, setParent
getCatalogItemId, tags
getConfig
void addLocations(@Nullable java.util.Collection<? extends Location> locations)
void removeLocations(java.util.Collection<? extends Location> locations)
@Beta void addLocationsWithoutPublishing(@Nullable java.util.Collection<? extends Location> locations)
AbstractEntity.LOCATION_ADDED
events, and without auto-managing the locations. This is for internal purposes only; it is primarily
intended for use during rebind.void clearLocations()
@Deprecated <T> T setAttributeWithoutPublishing(AttributeSensor<T> sensor, T val)
EntityInternal.SensorSupportInternal.setWithoutPublishing(AttributeSensor, Object)
via code like sensors().setWithoutPublishing(attribute, val)
.@Deprecated @Beta java.util.Map<AttributeSensor,java.lang.Object> getAllAttributes()
EntityInternal.SensorSupportInternal.getAll()
via code like sensors().getAll()
.@Deprecated @Beta void removeAttribute(AttributeSensor<?> attribute)
EntityInternal.SensorSupportInternal.remove(AttributeSensor)
via code like sensors().remove(attribute)
.@Beta EntityInternal configure(java.util.Map flags)
EntityManagementSupport getManagementSupport()
@Beta void destroy()
ManagementContext getManagementContext()
ExecutionContext getExecutionContext()
@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 BrooklynObjectInternal
getRebindSupport
in interface Rebindable
BrooklynObjectInternal.RelationSupportInternal<Entity> relations()
BrooklynObject
relations
in interface BrooklynObject
relations
in interface BrooklynObjectInternal
relations
in interface Entity
void requestPersist()
EntityInternal.EntitySubscriptionSupportInternal subscriptions()
BrooklynObject
subscriptions
in interface BrooklynObject
subscriptions
in interface BrooklynObjectInternal
EntityInternal.SensorSupportInternal sensors()
EntityInternal.PolicySupportInternal policies()
EntityInternal.EnricherSupportInternal enrichers()
EntityInternal.GroupSupportInternal groups()