Package org.opensearch.tasks
Class ThreadResourceInfo
java.lang.Object
org.opensearch.tasks.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.internal:
-
Constructor Summary
ConstructorsConstructorDescriptionThreadResourceInfo
(long threadId, ResourceStatsType statsType, ResourceUsageMetric... resourceUsageMetrics) -
Method Summary
Modifier and TypeMethodDescriptionlong
boolean
isActive()
void
recordResourceUsageMetrics
(ResourceUsageMetric... resourceUsageMetrics) Updates thread's resource consumption information.void
setActive
(boolean isActive) toString()
-
Constructor Details
-
ThreadResourceInfo
public ThreadResourceInfo(long threadId, ResourceStatsType statsType, ResourceUsageMetric... resourceUsageMetrics)
-
-
Method Details