public class PoolProcessor extends GridProcessorAdapter
GridComponent.DiscoveryDataExchangeType| Modifier and Type | Field and Description |
|---|---|
static String |
ACTIVE_COUNT_DESC |
static String |
COMPLETED_TASK_DESC |
static String |
CORE_SIZE_DESC |
static String |
IS_SHUTDOWN_DESC |
static String |
IS_TERMINATED_DESC |
static String |
IS_TERMINATING_DESC |
static String |
KEEP_ALIVE_TIME_DESC |
static String |
LARGEST_SIZE_DESC |
static String |
MAX_SIZE_DESC |
static String |
POOL_SIZE_DESC |
static String |
QUEUE_SIZE_DESC |
static String |
REJ_HND_DESC |
static String |
STREAM_POOL_QUEUE_VIEW
Name of the system view for a data streamer
StripedExecutor queue view. |
static String |
STREAM_POOL_QUEUE_VIEW_DESC
Description of the system view for a data streamer
StripedExecutor queue view. |
static String |
SYS_POOL_QUEUE_VIEW
Name of the system view for a system
StripedExecutor queue view. |
static String |
SYS_POOL_QUEUE_VIEW_DESC
Description of the system view for a system
StripedExecutor queue view. |
static String |
TASK_COUNT_DESC |
static String |
TASK_EXEC_TIME
Task execution time metric name.
|
static String |
TASK_EXEC_TIME_DESC
Task execution time metric description.
|
static long[] |
TASK_EXEC_TIME_HISTOGRAM_BUCKETS
Histogram buckets for the task execution time metric (in milliseconds).
|
static String |
THRD_FACTORY_DESC |
static String |
THREAD_POOLS
Group for a thread pools.
|
ctx, diagnosticLog, log| Constructor and Description |
|---|
PoolProcessor(GridKernalContext ctx)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
IgniteStripedThreadPoolExecutor |
asyncCallbackPool()
Gets async callback pool.
|
ExecutorService |
buildIndexExecutorService()
Return Thread pool for create/rebuild indexes.
|
@Nullable Executor |
customExecutor(String name)
Gets executor service for custom policy by executor name.
|
@Nullable Map<String,? extends ExecutorService> |
customExecutors()
Executor services that is in charge of processing user compute task.
|
ExecutorService |
getAffinityExecutorService()
Get affinity executor service.
|
StripedExecutor |
getDataStreamerExecutorService()
Executor service that is in charge of processing data stream messages.
|
ExecutorService |
getExecutorService() |
@Nullable ExecutorService |
getIndexingExecutorService()
Get indexing executor service.
|
ExecutorService |
getManagementExecutorService()
Executor service that is in charge of processing internal and Visor
GridJobs. |
ExecutorService |
getPeerClassLoadingExecutorService() |
ExecutorService |
getQueryExecutorService()
Executor service that is in charge of processing query messages.
|
ExecutorService |
getRebalanceExecutorService()
Executor service that is in charge of processing rebalance messages.
|
ExecutorService |
getReencryptionExecutorService() |
ExecutorService |
getRestExecutorService()
Should return an instance of fully configured thread pool to be used for
processing of client messages (REST requests).
|
ExecutorService |
getSchemaExecutorService()
Executor service that is in charge of processing schema change messages.
|
ExecutorService |
getServiceExecutorService()
Executor service that is in charge of processing service proxy invocations.
|
ExecutorService |
getSnapshotExecutorService() |
StripedExecutor |
getStripedExecutorService()
Executor service that is in charge of processing internal system messages
in stripes (dedicated threads).
|
IgniteStripedThreadPoolExecutor |
getStripedRebalanceExecutorService()
Executor service that is in charge of processing unorderable rebalance messages.
|
ExecutorService |
getSystemExecutorService()
Executor service that is in charge of processing internal system messages.
|
ExecutorService |
getThinClientExecutorService()
Executor service for thin clients.
|
Executor |
poolForPolicy(byte plc)
Get executor service for policy.
|
void |
registerMetrics()
Registers thread pools metrics and system views.
|
void |
start()
Starts grid component.
|
void |
stop(boolean cancel)
Stops grid component.
|
ExecutorService |
utilityCachePool()
Gets utility cache pool.
|
assertParameter, collectGridNodeData, collectJoiningNodeData, discoveryDataType, onDisconnected, onGridDataReceived, onJoiningNodeDataReceived, onKernalStart, onKernalStop, onReconnected, printMemoryStats, toString, validateNode, validateNodepublic static final String ACTIVE_COUNT_DESC
public static final String COMPLETED_TASK_DESC
public static final String CORE_SIZE_DESC
public static final String LARGEST_SIZE_DESC
public static final String MAX_SIZE_DESC
public static final String POOL_SIZE_DESC
public static final String TASK_COUNT_DESC
public static final String QUEUE_SIZE_DESC
public static final String KEEP_ALIVE_TIME_DESC
public static final String IS_SHUTDOWN_DESC
public static final String IS_TERMINATED_DESC
public static final String IS_TERMINATING_DESC
public static final String REJ_HND_DESC
public static final String THRD_FACTORY_DESC
public static final String TASK_EXEC_TIME
public static final String TASK_EXEC_TIME_DESC
public static final String STREAM_POOL_QUEUE_VIEW
StripedExecutor queue view.public static final String STREAM_POOL_QUEUE_VIEW_DESC
StripedExecutor queue view.public static final String SYS_POOL_QUEUE_VIEW
StripedExecutor queue view.public static final String SYS_POOL_QUEUE_VIEW_DESC
StripedExecutor queue view.public static final String THREAD_POOLS
public static final long[] TASK_EXEC_TIME_HISTOGRAM_BUCKETS
public PoolProcessor(GridKernalContext ctx)
ctx - Kernal context.public void start()
throws IgniteCheckedException
start in interface GridComponentstart in class GridProcessorAdapterIgniteCheckedException - Throws in case of any errors.public void stop(boolean cancel)
throws IgniteCheckedException
stop in interface GridComponentstop in class GridProcessorAdaptercancel - If true, then all ongoing tasks or jobs for relevant
components need to be cancelled.IgniteCheckedException - Thrown in case of any errors.public void registerMetrics()
public Executor poolForPolicy(byte plc) throws IgniteCheckedException
plc - Policy.IgniteCheckedException - If failed.@Nullable public @Nullable Executor customExecutor(String name)
name - Executor name.public ExecutorService utilityCachePool()
public IgniteStripedThreadPoolExecutor asyncCallbackPool()
public ExecutorService getExecutorService()
public ExecutorService getServiceExecutorService()
public ExecutorService getSystemExecutorService()
public StripedExecutor getStripedExecutorService()
public ExecutorService getManagementExecutorService()
GridJobs.public ExecutorService getPeerClassLoadingExecutorService()
public StripedExecutor getDataStreamerExecutorService()
public ExecutorService getRestExecutorService()
public ExecutorService getAffinityExecutorService()
@Nullable public @Nullable ExecutorService getIndexingExecutorService()
public ExecutorService getQueryExecutorService()
@Nullable public @Nullable Map<String,? extends ExecutorService> customExecutors()
public ExecutorService getSchemaExecutorService()
public ExecutorService getRebalanceExecutorService()
public ExecutorService getSnapshotExecutorService()
public ExecutorService getThinClientExecutorService()
public IgniteStripedThreadPoolExecutor getStripedRebalanceExecutorService()
public ExecutorService buildIndexExecutorService()
public ExecutorService getReencryptionExecutorService()
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.15.0 Release Date : April 25 2023