public class PortAttributeSensorAndConfigKey extends AttributeSensorAndConfigKey<PortRange,java.lang.Integer>
Sensor
describing a port on a system,
with a ConfigKey
which can be configured with a port range
(either a number e.g. 80, or a string e.g. "80" or "8080-8089" or even "80, 8080-8089, 8800+", or a list of these).
To convert at runtime a single port is chosen, respecting the entity.
AttributeSensor.SensorPersistenceMode
Modifier and Type | Field and Description |
---|---|
static org.slf4j.Logger |
LOG |
Constructor and Description |
---|
PortAttributeSensorAndConfigKey(PortAttributeSensorAndConfigKey orig,
java.lang.Object defaultValue) |
PortAttributeSensorAndConfigKey(java.lang.String name) |
PortAttributeSensorAndConfigKey(java.lang.String name,
java.lang.String description) |
PortAttributeSensorAndConfigKey(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 PortAttributeSensorAndConfigKey(java.lang.String name)
public PortAttributeSensorAndConfigKey(java.lang.String name, java.lang.String description)
public PortAttributeSensorAndConfigKey(java.lang.String name, java.lang.String description, java.lang.Object defaultValue)
public PortAttributeSensorAndConfigKey(PortAttributeSensorAndConfigKey orig, java.lang.Object defaultValue)