public interface EntityLocal extends Entity
setAttribute(AttributeSensorAndConfigKey,T>)
back in if/when move it back,
or if we extract an interface for AttributeSensorAndConfigKey.Entity.SensorSupport
BrooklynObject.TagSupport
Configurable.ConfigurationSupport
Modifier and Type | Method and Description |
---|---|
<T> void |
emit(Sensor<T> sensor,
T value)
Deprecated.
since 0.8.0; use
SensorSupport#emit(Sensor, Object) via code like sensors().emit(sensor, val) . |
<T> T |
getConfig(ConfigKey.HasConfigKey<T> key,
T defaultValue)
Deprecated.
in 0.5; use
#getConfig(HasConfigKey) |
<T> T |
getConfig(ConfigKey<T> key,
T defaultValue)
Deprecated.
in 0.5; use
Entity.getConfig(ConfigKey) |
<T> T |
modifyAttribute(AttributeSensor<T> attribute,
com.google.common.base.Function<? super T,Maybe<T>> modifier)
Deprecated.
since 0.8.0; use
SensorSupport#modify(AttributeSensor, Function) via code like sensors().modify(attribute, modifier) . |
boolean |
removeAllEnrichers()
Removes all enricher from this entity.
|
boolean |
removeAllPolicies()
Removes all policy from this entity.
|
<T> T |
setAttribute(AttributeSensor<T> attribute,
T val)
Deprecated.
since 0.8.0; use
SensorSupport#set(AttributeSensor, Object) via code like sensors().set(attribute, val) . |
<T> T |
setConfig(ConfigKey.HasConfigKey<T> key,
T val)
Deprecated.
since 0.7.0; use
Configurable.config() , such as entity.config().set(key, val) |
<T> T |
setConfig(ConfigKey.HasConfigKey<T> key,
Task<T> val)
Deprecated.
since 0.7.0; use
Configurable.config() , such as entity.config().set(key, val) |
<T> T |
setConfig(ConfigKey<T> key,
T val)
Deprecated.
since 0.7.0; use
Configurable.config() , such as entity.config().set(key, val) |
<T> T |
setConfig(ConfigKey<T> key,
Task<T> val)
Deprecated.
since 0.7.0; use
Configurable.config() , such as entity.config().set(key, val) |
void |
setDisplayName(java.lang.String displayName)
Sets the entity's display name.
|
<T> SubscriptionHandle |
subscribe(Entity producer,
Sensor<T> sensor,
SensorEventListener<? super T> listener)
Allow us to subscribe to data from a
Sensor on another entity. |
<T> SubscriptionHandle |
subscribeToChildren(Entity parent,
Sensor<T> sensor,
SensorEventListener<? super T> listener) |
<T> SubscriptionHandle |
subscribeToMembers(Group group,
Sensor<T> sensor,
SensorEventListener<? super T> listener) |
boolean |
unsubscribe(Entity producer)
Unsubscribes from the given producer.
|
boolean |
unsubscribe(Entity producer,
SubscriptionHandle handle)
Unsubscribes the given handle.
|
addChild, addChild, addEnricher, addEnricher, addFeed, addGroup, addPolicy, addPolicy, clearParent, getApplication, getApplicationId, getAttribute, getChildren, getConfig, getConfig, getConfigRaw, getConfigRaw, getCreationTime, getDisplayName, getEnrichers, getEntityType, getGroups, getIconUrl, getId, getLocations, getParent, getPolicies, invoke, removeChild, removeEnricher, removeGroup, removePolicy, sensors, setParent
getCatalogItemId, tags
config
void setDisplayName(java.lang.String displayName)
@Deprecated <T> T setConfig(ConfigKey<T> key, T val)
setConfig
in interface Configurable
@Deprecated <T> T setConfig(ConfigKey.HasConfigKey<T> key, T val)
@Deprecated <T> T setConfig(ConfigKey.HasConfigKey<T> key, Task<T> val)
<T> T setAttribute(AttributeSensor<T> attribute, T val)
SensorSupport#set(AttributeSensor, Object)
via code like sensors().set(attribute, val)
.@Beta <T> T modifyAttribute(AttributeSensor<T> attribute, com.google.common.base.Function<? super T,Maybe<T>> modifier)
SensorSupport#modify(AttributeSensor, Function)
via code like sensors().modify(attribute, modifier)
.<T> void emit(Sensor<T> sensor, T value)
SensorSupport#emit(Sensor, Object)
via code like sensors().emit(sensor, val)
.<T> T getConfig(ConfigKey<T> key, T defaultValue)
Entity.getConfig(ConfigKey)
<T> T getConfig(ConfigKey.HasConfigKey<T> key, T defaultValue)
#getConfig(HasConfigKey)
@Beta <T> SubscriptionHandle subscribe(Entity producer, Sensor<T> sensor, SensorEventListener<? super T> listener)
Sensor
on another entity.SubscriptionManager.subscribe(Map, Entity, Sensor, SensorEventListener)
@Beta <T> SubscriptionHandle subscribeToChildren(Entity parent, Sensor<T> sensor, SensorEventListener<? super T> listener)
@Beta <T> SubscriptionHandle subscribeToMembers(Group group, Sensor<T> sensor, SensorEventListener<? super T> listener)
@Beta boolean unsubscribe(Entity producer)
@Beta boolean unsubscribe(Entity producer, SubscriptionHandle handle)
boolean removeAllPolicies()
boolean removeAllEnrichers()