use of org.glassfish.external.statistics.impl.CountStatisticImpl in project Payara by payara.
the class ConnectionQueueStatsProvider method getCountQueued5MinutesAverage.
@ManagedAttribute(id = "countqueued5minutesaverage")
@Description("Average number of connections queued in the last 5 minutes")
public CountStatistic getCountQueued5MinutesAverage() {
final CountStatisticImpl stats = new CountStatisticImpl("CountQueued5MinutesAverage", "count", "Average number of connections queued in the last 5 minutes");
stats.setCount(getAverageBy(5));
return stats;
}
use of org.glassfish.external.statistics.impl.CountStatisticImpl in project Payara by payara.
the class FileCacheStatsProvider method getMappedMemorySize.
@ManagedAttribute(id = "mappedmemorysize")
@Description("Size of mapped memory used for caching")
public CountStatistic getMappedMemorySize() {
final CountStatisticImpl stats = new CountStatisticImpl("MappedMemorySize", "byte(s)", "Size of mapped memory used for caching");
stats.setCount(mappedMemorySize.get());
return stats;
}
Aggregations