public interface DataEntity extends Entity, Startable
AttributeSensor values.
Usage:
EntitySpec.create(DataEntity.class)
.configure(SENSOR_DATA_MAP, MutableMap.builder()
.put(Sensors.newStringSensor("string.data"), new Supplier<String>() { ... })
.put(Sensors.newLongSensor("long.data"), new Supplier<Long>() { ... })
.build());
BrooklynObject.TagSupportConfigurable.ConfigurationSupportStartable.RestartEffectorBody, Startable.StartEffectorBody, Startable.StopEffectorBody| Modifier and Type | Field and Description |
|---|---|
static ConfigKey<java.lang.Long> |
POLL_PERIOD |
static ConfigKey<java.util.Map<AttributeSensor<?>,com.google.common.base.Supplier<?>>> |
SENSOR_SUPPLIER_MAP |
RESTART, SERVICE_UP, START, STOPaddChild, 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, setParentgetCatalogItemId, getTagSupport, tagsconfig, setConfigstatic final ConfigKey<java.lang.Long> POLL_PERIOD
static final ConfigKey<java.util.Map<AttributeSensor<?>,com.google.common.base.Supplier<?>>> SENSOR_SUPPLIER_MAP