public class DefaultJmxCollector extends Object implements JmxCollector
JmxCollector| Modifier and Type | Field and Description | 
|---|---|
protected org.slf4j.Logger | 
logger  | 
| Constructor and Description | 
|---|
DefaultJmxCollector()  | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
collect(JmxCollectorConfig config,
       MBeanServer mBeanServer,
       JmxSampleProcessor sampleProcessor)
Implements the logic for the jmx data collection. 
 | 
public void collect(JmxCollectorConfig config, MBeanServer mBeanServer, JmxSampleProcessor sampleProcessor) throws JmxServerConnectionException
JmxCollectorJmxSampleProcessor 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 JmxCollectorconfig - 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).Copyright © 2021. All rights reserved.