@Beta public final class SshCommandSensor<T> extends AddSensor<T>
EntityInitializer which adds an SSH sensor feed running the command supplied
in order to populate the sensor with the indicated name. Note that the targetType is ignored,
and always set to String.HttpRequestSensor,
JmxAttributeSensor| Modifier and Type | Field and Description |
|---|---|
static ConfigKey<java.lang.String> |
SENSOR_COMMAND |
static ConfigKey<java.lang.String> |
SENSOR_EXECUTION_DIR |
SENSOR_NAME, SENSOR_PERIOD, SENSOR_TYPE| Constructor and Description |
|---|
SshCommandSensor(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> SENSOR_COMMAND
public static final ConfigKey<java.lang.String> SENSOR_EXECUTION_DIR
public SshCommandSensor(ConfigBag params)
public void apply(EntityLocal entity)
EntityInitializerapply in interface EntityInitializerapply 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)