public class TemplatedStringAttributeSensorAndConfigKey extends BasicAttributeSensorAndConfigKey<java.lang.String>
ConfigKey
which takes a freemarker-templated string,
and whose value is converted to a sensor by processing the template
with access to config and methods on the entity where it is set.BasicAttributeSensorAndConfigKey.IntegerAttributeSensorAndConfigKey, BasicAttributeSensorAndConfigKey.StringAttributeSensorAndConfigKey
AttributeSensor.SensorPersistenceMode
Modifier and Type | Field and Description |
---|---|
static org.slf4j.Logger |
LOG |
Constructor and Description |
---|
TemplatedStringAttributeSensorAndConfigKey(java.lang.String name) |
TemplatedStringAttributeSensorAndConfigKey(java.lang.String name,
java.lang.String description) |
TemplatedStringAttributeSensorAndConfigKey(java.lang.String name,
java.lang.String description,
java.lang.String defaultValue) |
TemplatedStringAttributeSensorAndConfigKey(TemplatedStringAttributeSensorAndConfigKey orig,
java.lang.String defaultValue) |
getAsSensorValue, getAsSensorValue, getConfigKey
getPersistenceMode
equals, getDescription, getName, getNameParts, getType, getTypeName, getTypeToken, hashCode, newEvent, toString
getDescription, getName, getNameParts, getType, getTypeName, getTypeToken, newEvent
public TemplatedStringAttributeSensorAndConfigKey(java.lang.String name)
public TemplatedStringAttributeSensorAndConfigKey(java.lang.String name, java.lang.String description)
public TemplatedStringAttributeSensorAndConfigKey(java.lang.String name, java.lang.String description, java.lang.String defaultValue)
public TemplatedStringAttributeSensorAndConfigKey(TemplatedStringAttributeSensorAndConfigKey orig, java.lang.String defaultValue)