Enrichers.builder()
public class SensorTransformingEnricher<T,U> extends AbstractTypeTransformingEnricher
if need to sub-class
AbstractEntityAdjunct.AdjunctTagSupport
BrooklynObject.TagSupport
Configurable.ConfigurationSupport
BrooklynObjectInternal.ConfigurationSupportInternal
SUPPRESS_DUPLICATES
NOOP
Constructor and Description |
---|
SensorTransformingEnricher(Entity producer,
Sensor<T> source,
Sensor<U> target,
groovy.lang.Closure transformation)
Deprecated.
|
SensorTransformingEnricher(Entity producer,
Sensor<T> source,
Sensor<U> target,
com.google.common.base.Function<? super T,? extends U> transformation)
Deprecated.
|
SensorTransformingEnricher(Sensor<T> source,
Sensor<U> target,
groovy.lang.Closure transformation)
Deprecated.
|
SensorTransformingEnricher(Sensor<T> source,
Sensor<U> target,
com.google.common.base.Function<T,U> transformation)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static <T> SensorTransformingEnricher<T,T> |
newInstanceTransforming(Entity producer,
AttributeSensor<T> sensor,
com.google.common.base.Function<T,T> transformation)
Deprecated.
as
newInstanceTransforming(Entity, AttributeSensor, Function, AttributeSensor)
using the same sensor as the source and the target |
static <U,V> SensorTransformingEnricher<U,V> |
newInstanceTransforming(Entity producer,
AttributeSensor<U> source,
com.google.common.base.Function<U,V> transformation,
AttributeSensor<V> target)
Deprecated.
since 0.7.0; use
Enrichers.builder() |
void |
onEvent(SensorEvent event)
Deprecated.
The
SensorEvent handler method. |
setEntity
getEnricherType, getRebindSupport
config, configure, destroy, getAllConfig, getConfig, getConfigMap, getDisplayName, getName, getUniqueTag, isDestroyed, isRunning, setConfig, setDisplayName, setName, tags, toString
getCatalogItemId, getId, getManagementContext, getTagSupport, init, rebind, setCatalogItemId, setManagementContext
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
getAllConfig, getConfig, getId, getName, setConfig
getUniqueTag, isDestroyed, isRunning
getCatalogItemId, getDisplayName, getTagSupport, tags
config
setCatalogItemId
public SensorTransformingEnricher(Entity producer, Sensor<T> source, Sensor<U> target, com.google.common.base.Function<? super T,? extends U> transformation)
public SensorTransformingEnricher(Entity producer, Sensor<T> source, Sensor<U> target, groovy.lang.Closure transformation)
public SensorTransformingEnricher(Sensor<T> source, Sensor<U> target, com.google.common.base.Function<T,U> transformation)
public void onEvent(SensorEvent event)
SensorEventListener
SensorEvent
handler method.public static <U,V> SensorTransformingEnricher<U,V> newInstanceTransforming(Entity producer, AttributeSensor<U> source, com.google.common.base.Function<U,V> transformation, AttributeSensor<V> target)
Enrichers.builder()
addEnricher(Enrichers.builder()
.transforming(source)
.publishing(target)
.from(producer)
.computing(transformation)
.build());
public static <T> SensorTransformingEnricher<T,T> newInstanceTransforming(Entity producer, AttributeSensor<T> sensor, com.google.common.base.Function<T,T> transformation)
newInstanceTransforming(Entity, AttributeSensor, Function, AttributeSensor)
using the same sensor as the source and the target