com.atlassian.bamboo.event.spi
Interface ExecutorStats

All Known Implementing Classes:
ExecutorStatsImpl

@Internal
@Immutable
public interface ExecutorStats

Class that exposes statistics of a ThreadPoolExecutor

Since:
v4.0

Method Summary
 int getActiveCount()
          How many threads are currently executing
 List<Runnable> getEventsQueue()
          LIst of Runnable that current waiting to be run
 int getPoolSize()
          THe maximmum number of threads
 Map<String,Pair<Runnable,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
List<Runnable> getEventsQueue()
LIst of Runnable that current waiting to be run

Returns:

getThreadToRunnableMappings

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

Returns:


Copyright © 2015 Atlassian Software Systems Pty Ltd. All rights reserved.