com.atlassian.bamboo.event.spi
Class ExecutorStatsImpl

java.lang.Object
  extended by com.atlassian.bamboo.event.spi.ExecutorStatsImpl
All Implemented Interfaces:
ExecutorStats

@Immutable
public class ExecutorStatsImpl
extends java.lang.Object
implements ExecutorStats


Constructor Summary
ExecutorStatsImpl(EventLoggingThreadPoolExecutor executor)
           
 
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExecutorStatsImpl

public ExecutorStatsImpl(EventLoggingThreadPoolExecutor executor)
Method Detail

getActiveCount

public int getActiveCount()
Description copied from interface: ExecutorStats
How many threads are currently executing

Specified by:
getActiveCount in interface ExecutorStats
Returns:

getPoolSize

public int getPoolSize()
Description copied from interface: ExecutorStats
THe maximmum number of threads

Specified by:
getPoolSize in interface ExecutorStats
Returns:

getEventsQueue

@NotNull
public java.util.List<java.lang.Runnable> getEventsQueue()
Description copied from interface: ExecutorStats
LIst of Runnable that current waiting to be run

Specified by:
getEventsQueue in interface ExecutorStats
Returns:

getThreadToRunnableMappings

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

Specified by:
getThreadToRunnableMappings in interface ExecutorStats
Returns:


Copyright © 2012 Atlassian. All Rights Reserved.