org.elasticsearch.threadpool
Class ThreadPool.Info

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

public static class ThreadPool.Info
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
ThreadPool.Info(String name, String type)
           
ThreadPool.Info(String name, String type, int size)
           
ThreadPool.Info(String name, String type, int min, int max, TimeValue keepAlive, SizeValue capacity)
           
 
Method Summary
 SizeValue capacity()
           
 SizeValue getCapacity()
           
 TimeValue getKeepAlive()
           
 int getMax()
           
 int getMin()
           
 String getName()
           
 String getType()
           
 TimeValue keepAlive()
           
 int max()
           
 int min()
           
 String name()
           
 void readFrom(StreamInput in)
           
 XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params)
           
 String type()
           
 void writeTo(StreamOutput out)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ThreadPool.Info

public ThreadPool.Info(String name,
                       String type)

ThreadPool.Info

public ThreadPool.Info(String name,
                       String type,
                       int size)

ThreadPool.Info

public ThreadPool.Info(String name,
                       String type,
                       int min,
                       int max,
                       @Nullable
                       TimeValue keepAlive,
                       @Nullable
                       SizeValue capacity)
Method Detail

name

public String name()

getName

public String getName()

type

public String type()

getType

public String getType()

min

public int min()

getMin

public int getMin()

max

public int max()

getMax

public int getMax()

keepAlive

@Nullable
public TimeValue keepAlive()

getKeepAlive

@Nullable
public TimeValue getKeepAlive()

capacity

@Nullable
public SizeValue capacity()

getCapacity

@Nullable
public SizeValue getCapacity()

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.