Enrichers.builder()public class SensorTransformingEnricher<T,U> extends AbstractTypeTransformingEnricher
if need to sub-classAbstractEntityAdjunct.AdjunctTagSupport, AbstractEntityAdjunct.BasicSubscriptionSupportBrooklynObject.RelationSupport<T extends BrooklynObject>, BrooklynObject.SubscriptionSupport, BrooklynObject.TagSupportConfigurable.ConfigurationSupportBrooklynObjectInternal.ConfigurationSupportInternal, BrooklynObjectInternal.RelationSupportInternal<T extends BrooklynObject>, BrooklynObjectInternal.SubscriptionSupportInternalSUPPRESS_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
SensorEvent handler method. |
setEntitygetEnricherType, getRebindSupport, relationsconfig, configure, destroy, getAdjunctType, getConfig, getDisplayName, getEntity, getUniqueTag, isDestroyed, isRunning, setConfig, setDisplayName, subscribe, subscribeToChildren, subscribeToMembers, subscriptions, tags, toString, unsubscribe, unsubscribegetCatalogItemId, getId, getManagementContext, init, rebind, setCatalogItemId, setManagementContextequals, getClass, hashCode, notify, notifyAll, wait, wait, waitgetUniqueTag, isDestroyed, isRunninggetCatalogItemId, getDisplayName, subscriptions, tagsconfig, getConfig, setConfigsetCatalogItemIdpublic 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