Package org.apache.uima.aae.monitor
Class BaseMonitor
- java.lang.Object
-
- org.apache.uima.aae.monitor.BaseMonitor
-
-
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
Constructors Constructor Description BaseMonitor(java.lang.String jmxServerURI)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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()
-
-
-
Method Detail
-
setThresholds
public void setThresholds(java.util.Map aThresholdMap)
- Specified by:
setThresholds
in interfaceMonitor
-
getThresholds
public java.util.Map getThresholds()
- Specified by:
getThresholds
in interfaceMonitor
-
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 interfaceMonitor
-
getLongNumericStatistic
public LongNumericStatistic getLongNumericStatistic(java.lang.String aComponent, java.lang.String aStatisticName)
- Specified by:
getLongNumericStatistic
in interfaceMonitor
-
getStatistic
public Statistic getStatistic(java.lang.String aComponentName, java.lang.String aStatisticName)
- Specified by:
getStatistic
in interfaceMonitor
-
getStatistics
public Statistics getStatistics(java.lang.String aComponentName)
- Specified by:
getStatistics
in interfaceMonitor
-
incrementCount
public void incrementCount(java.lang.String aComponent, java.lang.String aStatisticName)
- Specified by:
incrementCount
in interfaceMonitor
-
resetCountingStatistic
public void resetCountingStatistic(java.lang.String aComponent, java.lang.String aStatisticName)
- Specified by:
resetCountingStatistic
in interfaceMonitor
-
componentMapSize
public long componentMapSize()
- Specified by:
componentMapSize
in interfaceMonitor
-
thresholdMapSize
public long thresholdMapSize()
- Specified by:
thresholdMapSize
in interfaceMonitor
-
-