public class YamlTimeWeightedDeltaEnricher<T extends java.lang.Number> extends AbstractTransformer<T,java.lang.Double>
For example, given a requests.count sensor, this can make a requests.per_sec sensor with DELTA_PERIOD
set to "1s" (the default).
Suitable for configuration from YAML.
AbstractEntityAdjunct.AdjunctTagSupport, AbstractEntityAdjunct.BasicSubscriptionSupport
BrooklynObject.RelationSupport<T extends BrooklynObject>, BrooklynObject.SubscriptionSupport, BrooklynObject.TagSupport
Configurable.ConfigurationSupport
BrooklynObjectInternal.ConfigurationSupportInternal, BrooklynObjectInternal.RelationSupportInternal<T extends BrooklynObject>, BrooklynObjectInternal.SubscriptionSupportInternal
Modifier and Type | Field and Description |
---|---|
static ConfigKey<Duration> |
DELTA_PERIOD |
ALLOW_CYCLIC_PUBLISHING, PRODUCER, SOURCE_SENSOR, TARGET_SENSOR, TRIGGER_SENSORS
SUPPRESS_DUPLICATES
NOOP
Constructor and Description |
---|
YamlTimeWeightedDeltaEnricher() |
Modifier and Type | Method and Description |
---|---|
void |
setEntity(EntityLocal entity) |
onEvent
getEnricherType, getRebindSupport, relations
config, configure, destroy, getAdjunctType, getConfig, getDisplayName, getEntity, getUniqueTag, isDestroyed, isRunning, setConfig, setDisplayName, subscribe, subscribeToChildren, subscribeToMembers, subscriptions, tags, toString, unsubscribe, unsubscribe
getCatalogItemId, getId, getManagementContext, init, rebind, setCatalogItemId, setManagementContext
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
getUniqueTag, isDestroyed, isRunning
getCatalogItemId, getDisplayName, subscriptions, tags
config, getConfig, setConfig
setCatalogItemId
public void setEntity(EntityLocal entity)
setEntity
in class AbstractTransformer<T extends java.lang.Number,java.lang.Double>