public abstract class ProbeConnected<KeyType,ValueType,ConnectionClass extends Connection<?>> extends Probe<KeyType,ValueType> implements ConnectedProbe
| Constructor and Description |
|---|
ProbeConnected(String connectionName) |
| Modifier and Type | Method and Description |
|---|---|
Boolean |
configure() |
ConnectionClass |
getConnection() |
String |
getConnectionName() |
Map<KeyType,ValueType> |
getNewSampleValues()
The method that return a map of data collected.
It should return return as raw as possible, they can even be opaque data tied to the probe. |
abstract Map<KeyType,ValueType> |
getNewSampleValuesConnected(ConnectionClass cnx) |
boolean |
isCollectRunning() |
void |
setConnectionName(String connectionName) |
protected void |
setUptime(ConnectionClass cnx)
This method is used by getNewSampleValues to define the uptime for the probe.
The default way is to read it using the connection. |
addGraph, addGraph, checkStore, checkStoreFile, collect, compareTo, create, dsExist, dumpAsXml, dumpAsXml, fetchData, fetchData, fetchData, filterValues, getCollectMapping, getDsDefs, getGraphList, getHost, getLabel, getLastUpdate, getLastValues, getName, getNamedLogger, getPd, getQualifiedName, getRrdDef, getRrdName, getSourceType, getTags, getUptime, hashCode, log, log, modifySample, readProperties, readSpecific, setHost, setLabel, setName, setPd, setUptime, toStringconfigureStarters, find, find, find, find, find, getHostList, getLevel, getParent, getStarters, getStep, getTimeout, isStarted, registerStarter, registerStarter, setParent, setParent, setStep, setTimeout, startCollect, stopCollectpublic ProbeConnected(String connectionName)
public Boolean configure()
public String getConnectionName()
getConnectionName in interface ConnectedProbepublic void setConnectionName(String connectionName)
setConnectionName in interface ConnectedProbepublic ConnectionClass getConnection()
public Map<KeyType,ValueType> getNewSampleValues()
ProbeDesc. A key not associated with an existent datastore will generate a warning
but will not prevent the other values to be stored.java.lang.Number
It also set the uptime for the probe, using connection data. One should override setUptime if a probe use a specific uptime, that can't be provided
using the connection.getNewSampleValues in class Probe<KeyType,ValueType>protected void setUptime(ConnectionClass cnx)
cnx - public abstract Map<KeyType,ValueType> getNewSampleValuesConnected(ConnectionClass cnx)
public boolean isCollectRunning()
isCollectRunning in class StarterNode