public class Sensors
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
Sensors.Builder<T> |
Constructor and Description |
---|
Sensors() |
Modifier and Type | Method and Description |
---|---|
static <T> Sensors.Builder<T> |
builder(java.lang.Class<T> type,
java.lang.String name) |
static <T> Sensors.Builder<T> |
builder(com.google.common.reflect.TypeToken<T> type,
java.lang.String name) |
static AttributeSensor<java.lang.Boolean> |
newBooleanSensor(java.lang.String name) |
static AttributeSensor<java.lang.Boolean> |
newBooleanSensor(java.lang.String name,
java.lang.String description) |
static AttributeSensor<java.lang.Double> |
newDoubleSensor(java.lang.String name) |
static AttributeSensor<java.lang.Double> |
newDoubleSensor(java.lang.String name,
java.lang.String description) |
static AttributeSensor<java.lang.Integer> |
newIntegerSensor(java.lang.String name) |
static AttributeSensor<java.lang.Integer> |
newIntegerSensor(java.lang.String name,
java.lang.String description) |
static AttributeSensor<java.lang.Long> |
newLongSensor(java.lang.String name) |
static AttributeSensor<java.lang.Long> |
newLongSensor(java.lang.String name,
java.lang.String description) |
static <T> AttributeSensor<T> |
newSensor(java.lang.Class<T> type,
java.lang.String name) |
static <T> AttributeSensor<T> |
newSensor(java.lang.Class<T> type,
java.lang.String name,
java.lang.String description) |
static <T> AttributeSensor<T> |
newSensor(com.google.common.reflect.TypeToken<T> type,
java.lang.String name,
java.lang.String description) |
static <T> AttributeSensor<T> |
newSensorRenamed(java.lang.String newName,
AttributeSensor<T> sensor) |
static <T> AttributeSensor<T> |
newSensorWithPrefix(java.lang.String prefix,
AttributeSensor<T> sensor) |
static AttributeSensor<java.lang.String> |
newStringSensor(java.lang.String name) |
static AttributeSensor<java.lang.String> |
newStringSensor(java.lang.String name,
java.lang.String description) |
@Beta public static <T> Sensors.Builder<T> builder(com.google.common.reflect.TypeToken<T> type, java.lang.String name)
@Beta public static <T> Sensors.Builder<T> builder(java.lang.Class<T> type, java.lang.String name)
public static <T> AttributeSensor<T> newSensor(java.lang.Class<T> type, java.lang.String name)
public static <T> AttributeSensor<T> newSensor(java.lang.Class<T> type, java.lang.String name, java.lang.String description)
public static <T> AttributeSensor<T> newSensor(com.google.common.reflect.TypeToken<T> type, java.lang.String name, java.lang.String description)
public static AttributeSensor<java.lang.String> newStringSensor(java.lang.String name)
public static AttributeSensor<java.lang.String> newStringSensor(java.lang.String name, java.lang.String description)
public static AttributeSensor<java.lang.Integer> newIntegerSensor(java.lang.String name)
public static AttributeSensor<java.lang.Integer> newIntegerSensor(java.lang.String name, java.lang.String description)
public static AttributeSensor<java.lang.Long> newLongSensor(java.lang.String name)
public static AttributeSensor<java.lang.Long> newLongSensor(java.lang.String name, java.lang.String description)
public static AttributeSensor<java.lang.Double> newDoubleSensor(java.lang.String name)
public static AttributeSensor<java.lang.Double> newDoubleSensor(java.lang.String name, java.lang.String description)
public static AttributeSensor<java.lang.Boolean> newBooleanSensor(java.lang.String name)
public static AttributeSensor<java.lang.Boolean> newBooleanSensor(java.lang.String name, java.lang.String description)
public static <T> AttributeSensor<T> newSensorRenamed(java.lang.String newName, AttributeSensor<T> sensor)
public static <T> AttributeSensor<T> newSensorWithPrefix(java.lang.String prefix, AttributeSensor<T> sensor)