public class DefaultJmxCollector extends Object implements JmxCollector
JmxCollector
Modifier and Type | Field and Description |
---|---|
protected org.slf4j.Logger |
logger |
protected JmxConfigDao |
m_jmxConfigDao |
Constructor and Description |
---|
DefaultJmxCollector() |
Modifier and Type | Method and Description |
---|---|
void |
collect(JmxCollectorConfig config,
JmxSampleProcessor sampleProcessor)
Implements the logic for the jmx data collection.
|
void |
setJmxConfigDao(JmxConfigDao jmxConfigDao)
Method for setting the config dao to use.
|
protected final org.slf4j.Logger logger
protected JmxConfigDao m_jmxConfigDao
public void collect(JmxCollectorConfig config, JmxSampleProcessor sampleProcessor) throws JmxServerConnectionException
JmxCollector
JmxSampleProcessor
about the collected data.
The JmxSampleProcessor
is a callback for each sample collected.
Therefore each sample can be transformed to another data structure (e.g. collectd).collect
in interface JmxCollector
config
- The configuration to use for the collection.sampleProcessor
- The callback to process each sample.JmxServerConnectionException
- If the connection to the jmx server could not be established (whatever the reason).public void setJmxConfigDao(JmxConfigDao jmxConfigDao)
jmxConfigDao
- the dao instanceCopyright © 2020. All rights reserved.