org.elasticsearch.threadpool.scaling
Class ScalingThreadPool
java.lang.Object
org.elasticsearch.util.component.AbstractComponent
org.elasticsearch.threadpool.support.AbstractThreadPool
org.elasticsearch.threadpool.scaling.ScalingThreadPool
- All Implemented Interfaces:
- java.util.concurrent.Executor, ThreadPool
public class ScalingThreadPool
- extends AbstractThreadPool
Methods inherited from class org.elasticsearch.threadpool.support.AbstractThreadPool |
awaitTermination, execute, info, isStarted, schedule, schedule, schedule, scheduleAtFixedRate, scheduleWithFixedDelay, scheduleWithFixedDelay, shutdown, shutdownNow, stats, submit, submit, submit, submit, submit, submit |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ScalingThreadPool
public ScalingThreadPool()
ScalingThreadPool
@Inject
public ScalingThreadPool(Settings settings)
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