Class ThreadResourceInfo
java.lang.Object
org.opensearch.core.tasks.resourcetracker.ThreadResourceInfo
Resource consumption information about a particular execution of thread.
It captures the resource usage information about a particular execution of thread for a specific stats type like worker_stats or response_stats etc.,
- Opensearch.api:
-
Constructor Summary
ConstructorsConstructorDescriptionThreadResourceInfo(long threadId, ResourceStatsType statsType, ResourceUsageMetric... resourceUsageMetrics) -
Method Summary
Modifier and TypeMethodDescriptionlongbooleanisActive()voidrecordResourceUsageMetrics(ResourceUsageMetric... resourceUsageMetrics) Updates thread's resource consumption information.voidsetActive(boolean isActive) toString()
-
Constructor Details
-
ThreadResourceInfo
public ThreadResourceInfo(long threadId, ResourceStatsType statsType, ResourceUsageMetric... resourceUsageMetrics)
-
-
Method Details