Enrichers.builder()
public class SensorTransformingEnricher<T,U> extends AbstractTypeTransformingEnricher
if need to sub-class
AbstractEntityAdjunct.AdjunctTagSupport, AbstractEntityAdjunct.BasicSubscriptionSupport
BrooklynObject.RelationSupport<T extends BrooklynObject>, BrooklynObject.SubscriptionSupport, BrooklynObject.TagSupport
Configurable.ConfigurationSupport
BrooklynObjectInternal.ConfigurationSupportInternal, BrooklynObjectInternal.RelationSupportInternal<T extends BrooklynObject>, BrooklynObjectInternal.SubscriptionSupportInternal
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, 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 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