org.apache.uima.aae.jmx.monitor
Class BasicUimaJmxMonitorListener

java.lang.Object
  extended by org.apache.uima.aae.jmx.monitor.BasicUimaJmxMonitorListener
All Implemented Interfaces:
JmxMonitorListener

public class BasicUimaJmxMonitorListener
extends java.lang.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
BasicUimaJmxMonitorListener(int aMaxNameLength)
          Constructor
 
Method Summary
 void onNewMetrics(long sampleTime, ServiceMetrics[] metrics)
          Callback method called by the JmxMonitor after each checkpoint.
 void onNewSamplingInterval()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BasicUimaJmxMonitorListener

public BasicUimaJmxMonitorListener(int aMaxNameLength)
Constructor

Parameters:
aMaxNameLength - - the longest name of the UIMA-AS service. This is use to pad other names so that the output is easier to read.
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.

onNewSamplingInterval

public void onNewSamplingInterval()


Copyright © 2012. All Rights Reserved.