public RealmStatsProvider() { realmCount = new CountStatisticImpl("RealmCount", "realm","No of Realms"); }
public RealmStatsProvider() { realmCount = new CountStatisticImpl("RealmCount", "realm","No of Realms"); }
public DeploymentLifecycleStatsProvider() { long curTime = System.currentTimeMillis(); activeApplicationsDeployedCount = new RangeStatisticImpl( 0L, 0L, 0L, "ActiveApplicationsDeployed", StatisticImpl.UNIT_COUNT, ACTIVE_APPLICATIONS_DEPLOYED_DESCRIPTION, curTime, curTime); totalApplicationsDeployedCount = new CountStatisticImpl( "TotalApplicationsDeployed", StatisticImpl.UNIT_COUNT, TOTAL_APPLICATIONS_DEPLOYED_DESCRIPTION); }
@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; }
@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; }
@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; }
@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; }
@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; }
@ManagedAttribute(id = "countqueued1minuteaverage") @Description("Average number of connections queued in the last 1 minute") public CountStatistic getCountQueued1MinuteAverage() { final CountStatisticImpl stats = new CountStatisticImpl( "CountQueued1MinuteAverage", "count", "Average number of connections queued in the last 1 minute"); stats.setCount(getAverageBy(1)); return stats; }
@ManagedAttribute(id = "countqueued15minutesaverage") @Description("Average number of connections queued in the last 15 minutes") public CountStatistic getCountQueued15MinutesAverage() { final CountStatisticImpl stats = new CountStatisticImpl( "CountQueued15MinutesAverage", "count", "Average number of connections queued in the last 15 minutes"); stats.setCount(getAverageBy(15)); return stats; }
@ManagedAttribute(id = "countflushes") @Description("Number of keep-alive connections that were closed") public CountStatistic getFlushesCount() { final CountStatisticImpl stats = new CountStatisticImpl( "CountFlushes", "count", "Number of keep-alive connections that were closed" ); stats.setCount(Math.max(0, totalKeepAliveConnectionsCount.getCount() - timeoutsCount.getCount())); return stats; }
@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; }
new CountStatisticImpl(threadPool.numberOfBusyThreads(), stringNumberOfBusyThreads, "COUNT", threadPool.getWorkQueue(0).toString(), time, time); new CountStatisticImpl( threadPool.numberOfAvailableThreads(), stringNumberOfAvailableThreads, "count", threadPool.getWorkQueue(0).toString(), new CountStatisticImpl( workQueue.totalWorkItemsAdded(), stringTotalWorkItemsAdded, "count", workQueue.getName(),