@Beta public final class JmxAttributeSensor<T> extends AddSensor<T>
EntityInitializer
which adds a JMX sensor feed to retrieve an
attribute
from a JMX objectName
.SshCommandSensor
,
HttpRequestSensor
Modifier and Type | Field and Description |
---|---|
static ConfigKey<java.lang.String> |
ATTRIBUTE |
static ConfigKey<java.lang.Object> |
DEFAULT_VALUE |
static ConfigKey<java.lang.String> |
OBJECT_NAME |
SENSOR_NAME, SENSOR_PERIOD, SENSOR_TYPE
Constructor and Description |
---|
JmxAttributeSensor(ConfigBag params) |
Modifier and Type | Method and Description |
---|---|
void |
apply(EntityLocal entity)
Applies initialization logic to a just-built entity.
|
public static final ConfigKey<java.lang.String> OBJECT_NAME
public static final ConfigKey<java.lang.String> ATTRIBUTE
public static final ConfigKey<java.lang.Object> DEFAULT_VALUE
public JmxAttributeSensor(ConfigBag params)
public void apply(EntityLocal entity)
EntityInitializer
apply
in interface EntityInitializer
apply
in class AddSensor<T>
entity
- guaranteed to be the actual implementation instance,
thus guaranteed to be castable to EntityInternal which is often desired,
or to the type at hand (it is not even a proxy)