Package org.opensearch.threadpool
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 -
Method Summary
Modifier and TypeMethodDescriptionint
compareTo
(ThreadPoolStats.Stats other) int
long
int
getName()
int
getQueue()
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
- Throws:
IOException
-
-
Method Details
-
writeTo
- Specified by:
writeTo
in interfaceorg.opensearch.core.common.io.stream.Writeable
- Throws:
IOException
-
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 interfaceorg.opensearch.core.xcontent.ToXContent
- Throws:
IOException
-
compareTo
- Specified by:
compareTo
in interfaceComparable<ThreadPoolStats.Stats>
-