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 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 the 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).

        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).