use of org.glassfish.external.statistics.impl.CountStatisticImpl in project Payara by payara.
the class JdbcStatsProvider method getfreqUsedSqlQueries.
@ManagedAttribute(id = "frequsedsqlqueries")
public ListStatistic getfreqUsedSqlQueries() {
List<SQLTrace> sqlTraces = freqSqlTraceCache.getTopQueries();
freqUsedSqlQueries = new ListStatisticImpl("frequsedsqlqueries", "List", "Most frequently used sql queries");
for (SQLTrace trace : sqlTraces) {
CountStatisticImpl stat = new CountStatisticImpl(trace.getQueryName(), "Count", "");
stat.setCount(trace.getNumExecutions());
freqUsedSqlQueries.add(stat);
}
return freqUsedSqlQueries;
}
use of org.glassfish.external.statistics.impl.CountStatisticImpl in project Payara by payara.
the class ConnectionQueueStatsProvider method getOpenConnectionsCount.
@ManagedAttribute(id = "countopenconnections")
@Description("The number of open/active connections")
public CountStatistic getOpenConnectionsCount() {
final CountStatisticImpl stats = new CountStatisticImpl("CountOpenConnections", "count", "The number of open/active connections");
stats.setCount(openConnectionsCount.size());
return stats;
}
use of org.glassfish.external.statistics.impl.CountStatisticImpl in project Payara by payara.
the class FileCacheStatsProvider method getHeapSize.
@ManagedAttribute(id = "heapsize")
@Description("Current cache size in bytes")
public CountStatistic getHeapSize() {
final CountStatisticImpl stats = new CountStatisticImpl("HeapSize", "byte(s)", "Current cache size in bytes");
stats.setCount(heapSize.get());
return stats;
}
use of org.glassfish.external.statistics.impl.CountStatisticImpl in project Payara by payara.
the class FileCacheStatsProvider method getMaxHeapSize.
@ManagedAttribute(id = "maxheapsize")
@Description("Maximum heap space used for cache")
public CountStatistic getMaxHeapSize() {
final CountStatisticImpl stats = new CountStatisticImpl("MaxHeapSize", "byte(s)", "Maximum heap space used for cache");
stats.setCount(maxHeapSize.get());
return stats;
}
use of org.glassfish.external.statistics.impl.CountStatisticImpl in project Payara by payara.
the class FileCacheStatsProvider method getMaxMappedMemorySize.
@ManagedAttribute(id = "maxmappedmemorysize")
@Description("Maximum memory map size used for caching")
public CountStatistic getMaxMappedMemorySize() {
final CountStatisticImpl stats = new CountStatisticImpl("MaxMappedMemorySize", "byte(s)", "Maximum memory map size used for caching");
stats.setCount(maxMappedMemorySize.get());
return stats;
}
Aggregations