org.elasticsearch.threadpool.scaling
Class ScalingThreadPool

java.lang.Object
  extended by org.elasticsearch.common.component.AbstractComponent
      extended by org.elasticsearch.threadpool.support.AbstractThreadPool
          extended by org.elasticsearch.threadpool.scaling.ScalingThreadPool
All Implemented Interfaces:
java.util.concurrent.Executor, ThreadPool

public class ScalingThreadPool
extends AbstractThreadPool


Nested Class Summary
 
Nested classes/interfaces inherited from class org.elasticsearch.threadpool.support.AbstractThreadPool
AbstractThreadPool.FutureCallable<T>, AbstractThreadPool.FutureRunnable<T>
 
Field Summary
 
Fields inherited from class org.elasticsearch.threadpool.support.AbstractThreadPool
cached, executorService, scheduledExecutorService, started
 
Fields inherited from class org.elasticsearch.common.component.AbstractComponent
componentSettings, logger, settings
 
Constructor Summary
ScalingThreadPool()
           
ScalingThreadPool(Settings settings)
           
 
Method Summary
 int getActiveCount()
          Returns the approximate number of threads that are actively executing tasks.
 int getMaxThreads()
          The maximum number of threads in the thread pool.
 int getMinThreads()
          The minimum number of threads in the thread pool.
 int getPoolSize()
          Returns the current number of threads in the pool.
 int getSchedulerActiveCount()
          The approximate number of threads that are actively executing scheduled tasks.
 int getSchedulerPoolSize()
          The size of the scheduler thread pool.
 int getSchedulerThreads()
          The size of scheduler threads.
 java.lang.String getType()
           
 
Methods inherited from class org.elasticsearch.threadpool.support.AbstractThreadPool
awaitTermination, cached, execute, info, isStarted, schedule, schedule, schedule, scheduleAtFixedRate, scheduleWithFixedDelay, scheduleWithFixedDelay, shutdown, shutdownNow, stats
 
Methods inherited from class org.elasticsearch.common.component.AbstractComponent
nodeName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ScalingThreadPool

public ScalingThreadPool()

ScalingThreadPool

@Inject
public ScalingThreadPool(Settings settings)
Method Detail

getMinThreads

public int getMinThreads()
Description copied from interface: ThreadPool
The minimum number of threads in the thread pool.


getMaxThreads

public int getMaxThreads()
Description copied from interface: ThreadPool
The maximum number of threads in the thread pool.


getSchedulerThreads

public int getSchedulerThreads()
Description copied from interface: ThreadPool
The size of scheduler threads.


getPoolSize

public int getPoolSize()
Description copied from interface: ThreadPool
Returns the current number of threads in the pool.

Returns:
the number of threads

getActiveCount

public int getActiveCount()
Description copied from interface: ThreadPool
Returns the approximate number of threads that are actively executing tasks.

Returns:
the number of threads

getSchedulerPoolSize

public int getSchedulerPoolSize()
Description copied from interface: ThreadPool
The size of the scheduler thread pool.


getSchedulerActiveCount

public int getSchedulerActiveCount()
Description copied from interface: ThreadPool
The approximate number of threads that are actively executing scheduled tasks.


getType

public java.lang.String getType()
Specified by:
getType in class AbstractThreadPool