org.apache.uima.aae.jmx.monitor

## Class SingleLineUimaJmxMonitorListener

- java.lang.Object
- - org.apache.uima.aae.jmx.monitor.SingleLineUimaJmxMonitorListener

- All Implemented Interfaces:
    JmxMonitorListener

      public class SingleLineUimaJmxMonitorListener
      extends Object
      implements JmxMonitorListener

  This class implements `JmxMonitorListener` interface. It provides basic formatting for UIMA-AS service metrics. All metrics are formatted and logged into a uima log if one is defined. Otherwise, the output is dumped to stdout.

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `SingleLineUimaJmxMonitorListener()` Constructor

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `onNewMetrics(long sampleTime, ServiceMetrics[] metrics)` Callback method called by the JmxMonitor after each checkpoint.

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### SingleLineUimaJmxMonitorListener

          public SingleLineUimaJmxMonitorListener()

      Constructor

  - ### Method Detail

    - #### onNewMetrics

          public void onNewMetrics(long sampleTime,
                                   ServiceMetrics[] metrics)

      Callback method called by the JmxMonitor after each checkpoint.
      Specified by:
        `onNewMetrics` in interface `JmxMonitorListener`
      Parameters:
        `sampleTime` - - last checkpoint time
        `metrics` - - an array of ServiceMetrics objects, each holding metrics for a specific UIMA AS service.

Copyright © 2006–2018 The Apache Software Foundation. All rights reserved.