public class Transformer<T,U> extends AbstractEnricher implements SensorEventListener<T>
BrooklynObject.TagSupport| Modifier and Type | Field and Description | 
|---|---|
| static ConfigKey<Entity> | PRODUCER | 
| static ConfigKey<Sensor<?>> | SOURCE_SENSOR | 
| static ConfigKey<Sensor<?>> | TARGET_SENSOR | 
| static ConfigKey<com.google.common.base.Function<?,?>> | TRANSFORMATION_FROM_EVENT | 
| static ConfigKey<com.google.common.base.Function<?,?>> | TRANSFORMATION_FROM_VALUE | 
SUPPRESS_DUPLICATESNOOP| Constructor and Description | 
|---|
| Transformer() | 
| Modifier and Type | Method and Description | 
|---|---|
| void | onEvent(SensorEvent<T> event)The  SensorEventhandler method. | 
| void | setEntity(EntityLocal entity) | 
getEnricherType, 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 static ConfigKey<com.google.common.base.Function<?,?>> TRANSFORMATION_FROM_VALUE
public static ConfigKey<com.google.common.base.Function<?,?>> TRANSFORMATION_FROM_EVENT
public void setEntity(EntityLocal entity)
setEntity in class AbstractEnricherpublic void onEvent(SensorEvent<T> event)
SensorEventListenerSensorEvent handler method.onEvent in interface SensorEventListener<T>