Search in sources :

Example 11 with CountStatisticImpl

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;
}
Also used : CountStatisticImpl(org.glassfish.external.statistics.impl.CountStatisticImpl) Description(org.glassfish.gmbal.Description) ManagedAttribute(org.glassfish.gmbal.ManagedAttribute)

Example 12 with CountStatisticImpl

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;
}
Also used : CountStatisticImpl(org.glassfish.external.statistics.impl.CountStatisticImpl) Description(org.glassfish.gmbal.Description) ManagedAttribute(org.glassfish.gmbal.ManagedAttribute)

Aggregations

CountStatisticImpl (org.glassfish.external.statistics.impl.CountStatisticImpl)12 ManagedAttribute (org.glassfish.gmbal.ManagedAttribute)11 Description (org.glassfish.gmbal.Description)9 SQLTrace (com.sun.gjc.util.SQLTrace)1 SlowSqlTrace (fish.payara.jdbc.stats.SlowSqlTrace)1 BoundedRangeStatisticImpl (org.glassfish.external.statistics.impl.BoundedRangeStatisticImpl)1 ListStatisticImpl (org.glassfish.external.statistics.impl.ListStatisticImpl)1