org.apache.uima.aae.monitor
Class BaseMonitor

java.lang.Object
  extended by org.apache.uima.aae.monitor.BaseMonitor
All Implemented Interfaces:
Monitor

public class BaseMonitor
extends java.lang.Object
implements Monitor


Field Summary
 
Fields inherited from interface org.apache.uima.aae.monitor.Monitor
CpCErrorCount, ErrorCount, GetMetaErrorCount, GetMetaErrorRetryCount, IdleTime, MetadataRequestTimeoutCount, ProcessCount, ProcessErrorCount, ProcessErrorRetryCount, ProcessRequestTimeoutCount, TotalAEProcessTime, TotalDeserializeTime, TotalProcessErrorCount, TotalSerializeTime
 
Constructor Summary
BaseMonitor(java.lang.String jmxServerURI)
           
 
Method Summary
 void addStatistic(java.lang.String key, Statistic aStatistic)
           
 void addStatistic(java.lang.String aName, Statistic aStatistic, Endpoint anEndpoint)
           
 long componentMapSize()
           
 LongNumericStatistic getLongNumericStatistic(java.lang.String aComponent, java.lang.String aStatisticName)
           
 Statistic getStatistic(java.lang.String key)
           
 Statistic getStatistic(java.lang.String aComponentName, java.lang.String aStatisticName)
           
 Statistics getStatistics(java.lang.String aComponentName)
           
 java.util.Map getThresholds()
           
 void incrementCount(java.lang.String aComponent, java.lang.String aStatisticName)
           
 void resetCountingStatistic(java.lang.String aComponent, java.lang.String aStatisticName)
           
 void setThresholds(java.util.Map aThresholdMap)
           
 long thresholdMapSize()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BaseMonitor

public BaseMonitor(java.lang.String jmxServerURI)
            throws java.lang.Exception
Throws:
java.lang.Exception
Method Detail

setThresholds

public void setThresholds(java.util.Map aThresholdMap)
Specified by:
setThresholds in interface Monitor

getThresholds

public java.util.Map getThresholds()
Specified by:
getThresholds in interface Monitor

addStatistic

public void addStatistic(java.lang.String aName,
                         Statistic aStatistic,
                         Endpoint anEndpoint)

getStatistic

public Statistic getStatistic(java.lang.String key)

addStatistic

public void addStatistic(java.lang.String key,
                         Statistic aStatistic)
Specified by:
addStatistic in interface Monitor

getLongNumericStatistic

public LongNumericStatistic getLongNumericStatistic(java.lang.String aComponent,
                                                    java.lang.String aStatisticName)
Specified by:
getLongNumericStatistic in interface Monitor

getStatistic

public Statistic getStatistic(java.lang.String aComponentName,
                              java.lang.String aStatisticName)
Specified by:
getStatistic in interface Monitor

getStatistics

public Statistics getStatistics(java.lang.String aComponentName)
Specified by:
getStatistics in interface Monitor

incrementCount

public void incrementCount(java.lang.String aComponent,
                           java.lang.String aStatisticName)
Specified by:
incrementCount in interface Monitor

resetCountingStatistic

public void resetCountingStatistic(java.lang.String aComponent,
                                   java.lang.String aStatisticName)
Specified by:
resetCountingStatistic in interface Monitor

componentMapSize

public long componentMapSize()
Specified by:
componentMapSize in interface Monitor

thresholdMapSize

public long thresholdMapSize()
Specified by:
thresholdMapSize in interface Monitor


Copyright © 2011. All Rights Reserved.