public static class ThreadPoolStats.Stats extends java.lang.Object implements Writeable, ToXContent, java.lang.Comparable<ThreadPoolStats.Stats>
Writeable.Reader<V>, Writeable.Writer<V>
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
EMPTY_PARAMS
Constructor and Description |
---|
Stats(StreamInput in) |
Stats(java.lang.String name,
int threads,
int queue,
int active,
long rejected,
int largest,
long completed) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(ThreadPoolStats.Stats other) |
int |
getActive() |
long |
getCompleted() |
int |
getLargest() |
java.lang.String |
getName() |
int |
getQueue() |
long |
getRejected() |
int |
getThreads() |
XContentBuilder |
toXContent(XContentBuilder builder,
ToXContent.Params params) |
void |
writeTo(StreamOutput out)
Write this into the StreamOutput.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isFragment
public Stats(java.lang.String name, int threads, int queue, int active, long rejected, int largest, long completed)
public Stats(StreamInput in) throws java.io.IOException
java.io.IOException
public void writeTo(StreamOutput out) throws java.io.IOException
Writeable
public java.lang.String getName()
public int getThreads()
public int getQueue()
public int getActive()
public long getRejected()
public int getLargest()
public long getCompleted()
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
toXContent
in interface ToXContent
java.io.IOException
public int compareTo(ThreadPoolStats.Stats other)
compareTo
in interface java.lang.Comparable<ThreadPoolStats.Stats>