Package org.hyperledger.fabric.metrics
Interface TaskMetricsCollector
-
public interface TaskMetricsCollector
Collect 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 int
getActiveCount()
Currently executing threadsint
getCorePoolSize()
Gets the core (minimum) pool sizeint
getCurrentQueueCount()
Currently waiting tasks; should not be a higher numberint
getCurrentTaskCount()
Currently executing tasksint
getLargestPoolSize()
Gets the largest pool size so farint
getMaximumPoolSize()
Gets the upper limitw pool sizeint
getPoolSize()
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 limitw pool size- Returns:
- int > 0
-
-