public static class ThreadPoolStats.Stats extends Object implements Streamable, ToXContent, Comparable<ThreadPoolStats.Stats>
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.ParamsEMPTY_PARAMS| Constructor and Description |
|---|
ThreadPoolStats.Stats(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() |
String |
getName() |
int |
getQueue() |
long |
getRejected() |
int |
getThreads() |
void |
readFrom(StreamInput in) |
XContentBuilder |
toXContent(XContentBuilder builder,
ToXContent.Params params) |
void |
writeTo(StreamOutput out) |
public ThreadPoolStats.Stats(String name, int threads, int queue, int active, long rejected, int largest, long completed)
public String getName()
public int getThreads()
public int getQueue()
public int getActive()
public long getRejected()
public int getLargest()
public long getCompleted()
public void readFrom(StreamInput in) throws IOException
readFrom in interface StreamableIOExceptionpublic void writeTo(StreamOutput out) throws IOException
writeTo in interface StreamableIOExceptionpublic XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException
toXContent in interface ToXContentIOExceptionpublic int compareTo(ThreadPoolStats.Stats other)
compareTo in interface Comparable<ThreadPoolStats.Stats>Copyright © 2009–2017. All rights reserved.