Refine search
@ProbeListener("glassfish:kernel:thread-pool:threadReturnedToPoolEvent") public void threadReturnedToPoolEvent( @ProbeParam("monitoringId") String monitoringId, @ProbeParam("threadPoolName") String threadPoolName, @ProbeParam("threadId") long threadId) { totalExecutedTasksCount.increment(); currentThreadsBusy.decrement(); }
@ManagedAttribute(id="threadid") @Description( "Returns the ID of the thread associated with this ThreadInfo" ) public CountStatistic getThreadId() { threadId.setCount(threadInfo.getThreadId()); return threadId; }
@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="averageconnwaittime") public CountStatistic getAverageConnWaitTime() { //Time taken by all connection requests divided by total number of //connections acquired in the sampling period. long averageWaitTime = 0; if (numConnAcquired.getCount() != 0) { averageWaitTime = totalConnRequestWaitTime.getCount()/ numConnAcquired.getCount(); } else { averageWaitTime = 0; } averageConnWaitTime.setCount(averageWaitTime); return averageConnWaitTime; }
@ManagedAttribute @Description("Total number of work items added to the queue") public synchronized CountStatistic getTotalWorkItemsAdded() { long totWorkItemsAdded = workQueue.totalWorkItemsAdded(); totalWorkItemsAdded.setCount(totWorkItemsAdded); return (CountStatistic) totalWorkItemsAdded.getStatistic(); }
@ManagedAttribute(id="numtimerscreated") @Description( "Number of timers created in the system") public CountStatistic getNumTimersCreated() { return timerCreateStat.getStatistic(); }
@ProbeListener("glassfish:security:web:policyCreationEvent") public void policyConfigurationCreationEvent( @ProbeParam("contextId") String contextId) { policyConfCount.increment(); }
@ProbeListener("glassfish:kernel:thread-pool:threadReleasedEvent") public void threadReleasedEvent( @ProbeParam("monitoringId") String monitoringId, @ProbeParam("threadPoolName") String threadPoolName, @ProbeParam("threadId") long threadId) { if (name.equals(monitoringId)) { currentThreadCount.decrement(); } }
@ManagedAttribute(id="webpolicyconfigurationcount") public CountStatistic getPCCount() { return policyConfCount.getStatistic(); } /* @ProbeListener("glassfish:core:web:webDeploymentStartedEvent")
@ProbeListener("glassfish:kernel:thread-pool:setMaxThreadsEvent") public void setMaxThreadsEvent( @ProbeParam("monitoringId") String monitoringId, @ProbeParam("threadPoolName") String threadPoolName, @ProbeParam("maxNumberOfThreads") int maxNumberOfThreads) { if (name.equals(monitoringId)) { maxThreadsCount.setCount(maxNumberOfThreads); } }
public RealmStatsProvider() { realmCount = new CountStatisticImpl("RealmCount", "realm","No of Realms"); }
@ProbeListener("glassfish:transaction:transaction-service:deactivated") public void transactionDeactivatedEvent() { _logger.fine("=== transaction-service active --"); activeCount.decrement(); }
private void highLevelLog(StringBuffer stackTrace) { lowLevelLog(stackTrace); stackTrace.append("\n numConnFailedValidation = " + numConnFailedValidation.getCount()); stackTrace.append("\n numConnTimedOut = " + numConnTimedOut.getCount()); stackTrace.append("\n numConnAcquired = " + numConnAcquired.getCount()); stackTrace.append("\n numConnReleased = " + numConnReleased.getCount()); //TODO V3 : enabling other counters. /*stackTrace.append("\n currConnectionRequestWait = " + currConnectionRequestWait); stackTrace.append("\n minConnectionRequestWait = " + minConnectionRequestWait); stackTrace.append("\n maxConnectionRequestWait = " + maxConnectionRequestWait); stackTrace.append("\n totalConnectionRequestWait = " + totalConnectionRequestWait); stackTrace.append("\n numConnSuccessfullyMatched = " + this.numConnSuccessfullyMatched); stackTrace.append("\n numConnNotSuccessfullyMatched = " + numConnNotSuccessfullyMatched);*/ stackTrace.append("\n numPotentialConnLeak = " + numPotentialConnLeak.getCount()); }
@ManagedAttribute(id="numtimersdelivered") @Description( "Number of timers delivered by the system") public CountStatistic getNumTimersDelivered() { return timerDeliveredStat.getStatistic(); } }
@ProbeListener("glassfish:kernel:connections-keep-alive:incrementCountTimeoutsEvent") @Override public void incrementCountTimeoutsEvent(@ProbeParam("listenerName") String listenerName) { timeoutsCount.increment(); }
@ManagedAttribute(id = "currentbusythreads") @Description("Total number of busy threads") public synchronized CountStatistic getNumberOfBusyThreads() { int numBusyThreads = threadPool.numberOfBusyThreads(); numberOfBusyThreads.setCount(numBusyThreads); return (CountStatistic) numberOfBusyThreads.getStatistic(); }
@ProbeListener("glassfish:security:web:policyDestructionEvent") public void policyConfigurationDestructionEvent( @ProbeParam("contextId") String contextId) { policyConfCount.decrement(); }
@ManagedAttribute(id="websecuritymanagercount") public CountStatistic getWebSMCount() { return secMgrCount.getStatistic(); }
@ProbeListener("glassfish:kernel:connections-keep-alive:setMaxCountRequestsEvent") public void setMaxCountRequestsEvent( @ProbeParam("listenerName") String listenerName, @ProbeParam("maxRequests") int max) { if (name.equals(listenerName)) { maxRequestsCount.setCount(max); } }