Enrichers.builder()public class SensorTransformingEnricher<T,U> extends AbstractTypeTransformingEnricher
if need to sub-classBrooklynObject.TagSupportSUPPRESS_DUPLICATESNOOP| 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  SensorEventhandler method. | 
setEntitygetEnricherType, getRebindSupportconfigure, destroy, getAllConfig, getConfig, getConfigMap, getDisplayName, getName, getUniqueTag, isDestroyed, isRunning, setConfig, setDisplayName, setName, tags, toStringgetCatalogItemId, getId, getManagementContext, getTagSupport, init, rebind, setCatalogItemId, setManagementContextequals, getClass, hashCode, notify, notifyAll, wait, wait, waitgetAllConfig, getConfig, getId, getName, setConfiggetUniqueTag, isDestroyed, isRunninggetCatalogItemId, getDisplayName, getTagSupport, tagssetCatalogItemIdpublic 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)
SensorEventListenerSensorEvent 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