Class ThreadResourceInfo

java.lang.Object
org.opensearch.tasks.ThreadResourceInfo

public class ThreadResourceInfo extends Object
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 Details

  • Method Details

    • recordResourceUsageMetrics

      public void recordResourceUsageMetrics(ResourceUsageMetric... resourceUsageMetrics)
      Updates thread's resource consumption information.
    • setActive

      public void setActive(boolean isActive)
    • isActive

      public boolean isActive()
    • getStatsType

      public ResourceStatsType getStatsType()
    • getThreadId

      public long getThreadId()
    • getResourceUsageInfo

      public ResourceUsageInfo getResourceUsageInfo()
    • toString

      public String toString()
      Overrides:
      toString in class Object