Package org.hyperledger.fabric.metrics
Interface TaskMetricsCollector
-
public interface TaskMetricsCollectorCollect metrics relating to the task execution. The task execution (of which each fabric transaction is one) is backed by a thread pool that implements this interface. As that is an implementation class this interface abstracts the information available from it (as far as metrics go).
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description intgetActiveCount()Currently executing threads.intgetCorePoolSize()Gets the core (minimum) pool size.intgetCurrentQueueCount()Currently waiting tasks; should not be a higher number.intgetCurrentTaskCount()Currently executing tasks.intgetLargestPoolSize()Gets the largest pool size so far.intgetMaximumPoolSize()Gets the upper limit pool size.intgetPoolSize()Gets the current size of the pool.
-
-
-
Method Detail
-
getCurrentTaskCount
int getCurrentTaskCount()
Currently executing tasks.- Returns:
- int > 0
-
getCurrentQueueCount
int getCurrentQueueCount()
Currently waiting tasks; should not be a higher number.- Returns:
- int > 0
-
getActiveCount
int getActiveCount()
Currently executing threads.- Returns:
- int > 0
-
getPoolSize
int getPoolSize()
Gets the current size of the pool.- Returns:
- int > 0
-
getCorePoolSize
int getCorePoolSize()
Gets the core (minimum) pool size.- Returns:
- int > 0
-
getLargestPoolSize
int getLargestPoolSize()
Gets the largest pool size so far.- Returns:
- int > 0
-
getMaximumPoolSize
int getMaximumPoolSize()
Gets the upper limit pool size.- Returns:
- int > 0
-
-