Class ThreadPoolStats.Stats

java.lang.Object
org.opensearch.threadpool.ThreadPoolStats.Stats
All Implemented Interfaces:
Comparable<ThreadPoolStats.Stats>, org.opensearch.core.common.io.stream.Writeable, org.opensearch.core.xcontent.ToXContent, org.opensearch.core.xcontent.ToXContentFragment
Enclosing class:
ThreadPoolStats

@PublicApi(since="1.0.0") public static class ThreadPoolStats.Stats extends Object implements org.opensearch.core.common.io.stream.Writeable, org.opensearch.core.xcontent.ToXContentFragment, Comparable<ThreadPoolStats.Stats>
The statistics.
Opensearch.api:
  • Nested Class Summary

    Nested classes/interfaces inherited from interface org.opensearch.core.xcontent.ToXContent

    org.opensearch.core.xcontent.ToXContent.DelegatingMapParams, org.opensearch.core.xcontent.ToXContent.MapParams, org.opensearch.core.xcontent.ToXContent.Params

    Nested classes/interfaces inherited from interface org.opensearch.core.common.io.stream.Writeable

    org.opensearch.core.common.io.stream.Writeable.Reader<V>, org.opensearch.core.common.io.stream.Writeable.WriteableRegistry, org.opensearch.core.common.io.stream.Writeable.Writer<V>
  • Field Summary

    Fields inherited from interface org.opensearch.core.xcontent.ToXContent

    EMPTY_PARAMS
  • Constructor Summary

    Constructors
    Constructor
    Description
    Stats(String name, int threads, int queue, int active, long rejected, int largest, long completed, long waitTimeNanos)
     
    Stats(org.opensearch.core.common.io.stream.StreamInput in)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    int
     
    int
     
    long
     
    int
     
     
    int
     
    long
     
    int
     
    org.opensearch.common.unit.TimeValue
     
    long
     
    org.opensearch.core.xcontent.XContentBuilder
    toXContent(org.opensearch.core.xcontent.XContentBuilder builder, org.opensearch.core.xcontent.ToXContent.Params params)
     
    void
    writeTo(org.opensearch.core.common.io.stream.StreamOutput out)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.opensearch.core.xcontent.ToXContentFragment

    isFragment
  • Constructor Details

    • Stats

      public Stats(String name, int threads, int queue, int active, long rejected, int largest, long completed, long waitTimeNanos)
    • Stats

      public Stats(org.opensearch.core.common.io.stream.StreamInput in) throws IOException
      Throws:
      IOException
  • Method Details

    • writeTo

      public void writeTo(org.opensearch.core.common.io.stream.StreamOutput out) throws IOException
      Specified by:
      writeTo in interface org.opensearch.core.common.io.stream.Writeable
      Throws:
      IOException
    • getName

      public String getName()
    • getThreads

      public int getThreads()
    • getQueue

      public int getQueue()
    • getActive

      public int getActive()
    • getRejected

      public long getRejected()
    • getLargest

      public int getLargest()
    • getCompleted

      public long getCompleted()
    • getWaitTime

      public org.opensearch.common.unit.TimeValue getWaitTime()
    • getWaitTimeNanos

      public long getWaitTimeNanos()
    • toXContent

      public org.opensearch.core.xcontent.XContentBuilder toXContent(org.opensearch.core.xcontent.XContentBuilder builder, org.opensearch.core.xcontent.ToXContent.Params params) throws IOException
      Specified by:
      toXContent in interface org.opensearch.core.xcontent.ToXContent
      Throws:
      IOException
    • compareTo

      public int compareTo(ThreadPoolStats.Stats other)
      Specified by:
      compareTo in interface Comparable<ThreadPoolStats.Stats>