public class GlobalRequestProcessorStats extends AbstractStats
MB| Constructor and Description |
|---|
GlobalRequestProcessorStats(java.lang.String aName)
Default Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
java.util.List<java.lang.String> |
getAvailableValueNames()
Returns the names of all contained stats.
|
long |
getBytesReceived(java.lang.String intervalName)
Returns bytes received value by selected interval.
|
long |
getBytesSent(java.lang.String intervalName)
Returns bytes sent value by selected interval.
|
long |
getErrorCount(java.lang.String intervalName)
Returns error count by selected interval.
|
long |
getMaxTime(java.lang.String intervalName)
Returns max time value by selected interval.
|
long |
getProcessingTime(java.lang.String intervalName)
Returns processing time value by selected interval.
|
long |
getRequestCount(java.lang.String intervalName)
Returns request count by selected interval.
|
java.lang.String |
getValueByNameAsString(java.lang.String valueName,
java.lang.String intervalName,
TimeUnit timeUnit) |
java.lang.String |
toStatsString(java.lang.String intervalName,
TimeUnit unit)
This method creates a human-readable textual representation of all statistical
values in the given interval.
|
void |
update(long aRequestCount,
long aMaxTime,
long aBytesReceived,
long aBytesSent,
long aProcessingTime,
long aErrorCount)
Updates stats.
|
addStatValues, createCallExecution, destroy, getName, isEmpty, toStatsString, toStatsString, toStatsString, toStringpublic GlobalRequestProcessorStats(java.lang.String aName)
aName - stat namepublic java.lang.String toStatsString(java.lang.String intervalName,
TimeUnit unit)
IStatsintervalName - the name of the interval or null for all intervalspublic java.lang.String getValueByNameAsString(java.lang.String valueName,
java.lang.String intervalName,
TimeUnit timeUnit)
getValueByNameAsString in interface IStatsgetValueByNameAsString in class AbstractStatspublic java.util.List<java.lang.String> getAvailableValueNames()
IStatsgetAvailableValueNames in interface IStatsgetAvailableValueNames in interface StatsMXBeangetAvailableValueNames in class AbstractStatspublic void update(long aRequestCount,
long aMaxTime,
long aBytesReceived,
long aBytesSent,
long aProcessingTime,
long aErrorCount)
aRequestCount - request countaMaxTime - max timeaBytesReceived - bytes receivedaBytesSent - bytes sentaProcessingTime - processing timeaErrorCount - error countpublic long getRequestCount(java.lang.String intervalName)
intervalName - interval namepublic long getMaxTime(java.lang.String intervalName)
intervalName - interval namepublic long getBytesReceived(java.lang.String intervalName)
intervalName - interval namepublic long getBytesSent(java.lang.String intervalName)
intervalName - interval namepublic long getProcessingTime(java.lang.String intervalName)
intervalName - interval namepublic long getErrorCount(java.lang.String intervalName)
intervalName - interval nameCopyright © 2010-2020 anotheria.net. All Rights Reserved.