org.elasticsearch.threadpool
Class ThreadPoolStats.Stats

java.lang.Object
  extended by org.elasticsearch.threadpool.ThreadPoolStats.Stats
All Implemented Interfaces:
Streamable, ToXContent
Enclosing class:
ThreadPoolStats

public static class ThreadPoolStats.Stats
extends Object
implements Streamable, ToXContent


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.elasticsearch.common.xcontent.ToXContent
ToXContent.MapParams, ToXContent.Params
 
Field Summary
 
Fields inherited from interface org.elasticsearch.common.xcontent.ToXContent
EMPTY_PARAMS
 
Constructor Summary
ThreadPoolStats.Stats(String name, int threads, int queue, int active, long rejected)
           
 
Method Summary
 int active()
           
 int getActive()
           
 String getName()
           
 int getQueue()
           
 long getRejected()
           
 int getThreads()
           
 String name()
           
 int queue()
           
 void readFrom(StreamInput in)
           
 long rejected()
           
 int threads()
           
 XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params)
           
 void writeTo(StreamOutput out)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ThreadPoolStats.Stats

public ThreadPoolStats.Stats(String name,
                             int threads,
                             int queue,
                             int active,
                             long rejected)
Method Detail

name

public String name()

getName

public String getName()

threads

public int threads()

getThreads

public int getThreads()

queue

public int queue()

getQueue

public int getQueue()

active

public int active()

getActive

public int getActive()

rejected

public long rejected()

getRejected

public long getRejected()

readFrom

public void readFrom(StreamInput in)
              throws IOException
Specified by:
readFrom in interface Streamable
Throws:
IOException

writeTo

public void writeTo(StreamOutput out)
             throws IOException
Specified by:
writeTo in interface Streamable
Throws:
IOException

toXContent

public XContentBuilder toXContent(XContentBuilder builder,
                                  ToXContent.Params params)
                           throws IOException
Specified by:
toXContent in interface ToXContent
Throws:
IOException


Copyright © 2009-2012. All Rights Reserved.