use of org.glassfish.gmbal.Description 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;
}
use of org.glassfish.gmbal.Description in project Payara by payara.
the class JVMGCStatsProvider method getCollectionCount.
@ManagedAttribute(id = "collectioncount-count")
@Description("total number of collections that have occurred")
public CountStatistic getCollectionCount() {
long counts = -1;
for (GarbageCollectorMXBean gcBean : gcBeanList) {
if (gcBean.getName().equals(gcName)) {
counts = gcBean.getCollectionCount();
}
}
collectionCount.setCount(counts);
return collectionCount;
}
Aggregations