com.atlassian.bamboo.event.spi
Interface ExecutorStats

All Known Implementing Classes:
ExecutorStatsImpl

@Immutable
public interface ExecutorStats

Class that exposes statistics of a ThreadPoolExecutor

Since:
v4.0

Method Summary
 int getActiveCount()
          How many threads are currently executing
 java.util.List<java.lang.Runnable> getEventsQueue()
          LIst of Runnable that current waiting to be run
 int getPoolSize()
          THe maximmum number of threads
 java.util.Map<java.lang.String,Pair<java.lang.Runnable,java.util.Date>> getThreadToRunnableMappings()
          A mapping of a ThreadName to a pair of Runnable and the date the runnable started running.
 

Method Detail

getActiveCount

int getActiveCount()
How many threads are currently executing

Returns:

getPoolSize

int getPoolSize()
THe maximmum number of threads

Returns:

getEventsQueue

@NotNull
java.util.List<java.lang.Runnable> getEventsQueue()
LIst of Runnable that current waiting to be run

Returns:

getThreadToRunnableMappings

@NotNull
java.util.Map<java.lang.String,Pair<java.lang.Runnable,java.util.Date>> getThreadToRunnableMappings()
A mapping of a ThreadName to a pair of Runnable and the date the runnable started running.

Returns:


Copyright © 2012 Atlassian. All Rights Reserved.