public final class SshCommandSensor<T extends java.lang.String> extends AddSensor<java.lang.String,AttributeSensor<java.lang.String>>
EntityInitializer
which adds an SSH sensor feed running the command
supplied
in order to populate the sensor with the indicated name
.Modifier and Type | Field and Description |
---|---|
static ConfigKey<java.lang.String> |
SENSOR_COMMAND |
SENSOR_NAME, SENSOR_PERIOD, SENSOR_TYPE
Constructor and Description |
---|
SshCommandSensor(ConfigBag params) |
SshCommandSensor(java.util.Map<java.lang.String,java.lang.String> 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 SshCommandSensor(ConfigBag params)
public SshCommandSensor(java.util.Map<java.lang.String,java.lang.String> params)
public void apply(EntityLocal entity)
EntityInitializer
apply
in interface EntityInitializer
apply
in class AddSensor<java.lang.String,AttributeSensor<java.lang.String>>
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)