public class BasicAttributeSensorAndConfigKey<T> extends AttributeSensorAndConfigKey<T,T>
Sensor
describing an attribute that can be configured with a default value.
The ConfigKey
has the same type, name and description as the sensor,
and is typically used to populate the sensor's value at runtime.Modifier and Type | Class and Description |
---|---|
static class |
BasicAttributeSensorAndConfigKey.IntegerAttributeSensorAndConfigKey |
static class |
BasicAttributeSensorAndConfigKey.StringAttributeSensorAndConfigKey |
AttributeSensor.SensorPersistenceMode
Constructor and Description |
---|
BasicAttributeSensorAndConfigKey(AttributeSensorAndConfigKey<T,T> orig,
T defaultValue) |
BasicAttributeSensorAndConfigKey(java.lang.Class<T> type,
java.lang.String name) |
BasicAttributeSensorAndConfigKey(java.lang.Class<T> type,
java.lang.String name,
java.lang.String description) |
BasicAttributeSensorAndConfigKey(java.lang.Class<T> type,
java.lang.String name,
java.lang.String description,
T defaultValue) |
BasicAttributeSensorAndConfigKey(com.google.common.reflect.TypeToken<T> type,
java.lang.String name) |
BasicAttributeSensorAndConfigKey(com.google.common.reflect.TypeToken<T> type,
java.lang.String name,
java.lang.String description) |
BasicAttributeSensorAndConfigKey(com.google.common.reflect.TypeToken<T> type,
java.lang.String name,
java.lang.String description,
java.lang.Object defaultValue) |
getAsSensorValue, getAsSensorValue, getConfigKey
getPersistenceMode
equals, getDescription, getName, getNameParts, getType, getTypeName, getTypeToken, hashCode, newEvent, toString
getDescription, getName, getNameParts, getType, getTypeName, getTypeToken, newEvent
public BasicAttributeSensorAndConfigKey(java.lang.Class<T> type, java.lang.String name)
public BasicAttributeSensorAndConfigKey(java.lang.Class<T> type, java.lang.String name, java.lang.String description)
public BasicAttributeSensorAndConfigKey(java.lang.Class<T> type, java.lang.String name, java.lang.String description, T defaultValue)
public BasicAttributeSensorAndConfigKey(com.google.common.reflect.TypeToken<T> type, java.lang.String name)
public BasicAttributeSensorAndConfigKey(com.google.common.reflect.TypeToken<T> type, java.lang.String name, java.lang.String description)
public BasicAttributeSensorAndConfigKey(com.google.common.reflect.TypeToken<T> type, java.lang.String name, java.lang.String description, java.lang.Object defaultValue)
public BasicAttributeSensorAndConfigKey(AttributeSensorAndConfigKey<T,T> orig, T defaultValue)