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.StringAttributeSensorAndConfigKeyAttributeSensor.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, getConfigKeygetPersistenceModeequals, getDescription, getName, getNameParts, getType, getTypeName, getTypeToken, hashCode, newEvent, toStringgetDescription, getName, getNameParts, getType, getTypeName, getTypeToken, newEventpublic 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)