Package org.opennms.netmgt.jmx
Interface JmxCollector
-
- All Known Implementing Classes:
DefaultJmxCollector
public interface JmxCollector
The JmxCollector is responsible to collect the configured data at the configured ip address.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
collect(JmxCollectorConfig config, MBeanServer mBeanServer, JmxSampleProcessor sampleProcessor)
Implements the logic for the jmx data collection.
-
-
-
Method Detail
-
collect
void collect(JmxCollectorConfig config, MBeanServer mBeanServer, JmxSampleProcessor sampleProcessor) throws JmxServerConnectionException
Implements the logic for the jmx data collection. Therefore it should somehow: 1. establish the connection to the configured ip address. 2. collect the configured data. 3. inform theJmxSampleProcessor
about the collected data. TheJmxSampleProcessor
is a callback for each sample collected. Therefore each sample can be transformed to another data structure (e.g. collectd).- Parameters:
config
- The configuration to use for the collection.sampleProcessor
- The callback to process each sample.- Throws:
JmxServerConnectionException
- If the connection to the jmx server could not be established (whatever the reason).
-
-