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.TagSupport
Configurable.ConfigurationSupport
Startable.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, STOP
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
config, setConfig
static final ConfigKey<java.lang.Long> POLL_PERIOD
static final ConfigKey<java.util.Map<AttributeSensor<?>,com.google.common.base.Supplier<?>>> SENSOR_SUPPLIER_MAP