org.elasticsearch.threadpool
Class ThreadPoolInfo

java.lang.Object
  extended by org.elasticsearch.threadpool.ThreadPoolInfo
All Implemented Interfaces:
java.io.Serializable, Streamable, ToXContent

public class ThreadPoolInfo
extends java.lang.Object
implements Streamable, java.io.Serializable, ToXContent

Thread Pool Info.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.elasticsearch.util.xcontent.ToXContent
ToXContent.MapParams, ToXContent.Params
 
Field Summary
 
Fields inherited from interface org.elasticsearch.util.xcontent.ToXContent
EMPTY_PARAMS
 
Constructor Summary
ThreadPoolInfo(java.lang.String type, int minThreads, int maxThreads, int schedulerThreads)
           
 
Method Summary
 int getMaxThreads()
          The maximum number of threads in the thread pool.
 int getMinThreads()
          The minimum number of threads in the thread pool.
 int getSchedulerThreads()
          The size of scheduler threads.
 java.lang.String getType()
          The type of the thread pool.
 int maxThreads()
          The maximum number of threads in the thread pool.
 int minThreads()
          The minimum number of threads in the thread pool.
 void readFrom(StreamInput in)
           
static ThreadPoolInfo readThreadPoolInfo(StreamInput in)
           
 int schedulerThreads()
          The size of scheduler threads.
 void toXContent(XContentBuilder builder, ToXContent.Params params)
           
 java.lang.String type()
          The type of the thread pool.
 void writeTo(StreamOutput out)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ThreadPoolInfo

public ThreadPoolInfo(java.lang.String type,
                      int minThreads,
                      int maxThreads,
                      int schedulerThreads)
Method Detail

readThreadPoolInfo

public static ThreadPoolInfo readThreadPoolInfo(StreamInput in)
                                         throws java.io.IOException
Throws:
java.io.IOException

readFrom

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

writeTo

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

toXContent

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

type

public java.lang.String type()
The type of the thread pool.


getType

public java.lang.String getType()
The type of the thread pool.


minThreads

public int minThreads()
The minimum number of threads in the thread pool.


getMinThreads

public int getMinThreads()
The minimum number of threads in the thread pool.


maxThreads

public int maxThreads()
The maximum number of threads in the thread pool.


getMaxThreads

public int getMaxThreads()
The maximum number of threads in the thread pool.


schedulerThreads

public int schedulerThreads()
The size of scheduler threads.


getSchedulerThreads

public int getSchedulerThreads()
The size of scheduler threads.