use of org.apache.ignite.internal.managers.systemview.walker.StripedExecutorTaskViewWalker in project ignite by apache.
the class PoolProcessor method registerMetrics.
/**
* Registers thread pools metrics and system views.
*/
public void registerMetrics() {
monitorExecutor("GridUtilityCacheExecutor", utilityCacheExecSvc);
monitorExecutor("GridExecutionExecutor", execSvc);
monitorExecutor("GridServicesExecutor", svcExecSvc);
monitorExecutor("GridSystemExecutor", sysExecSvc);
monitorExecutor("GridClassLoadingExecutor", p2pExecSvc);
monitorExecutor("GridManagementExecutor", mgmtExecSvc);
monitorExecutor("GridAffinityExecutor", affExecSvc);
monitorExecutor("GridCallbackExecutor", callbackExecSvc);
monitorExecutor("GridQueryExecutor", qryExecSvc);
monitorExecutor("GridSchemaExecutor", schemaExecSvc);
monitorExecutor("GridRebalanceExecutor", rebalanceExecSvc);
monitorExecutor("GridRebalanceStripedExecutor", rebalanceStripedExecSvc);
monitorStripedPool("GridDataStreamExecutor", dataStreamerExecSvc);
if (idxExecSvc != null)
monitorExecutor("GridIndexingExecutor", idxExecSvc);
if (ctx.config().getConnectorConfiguration() != null)
monitorExecutor("GridRestExecutor", restExecSvc);
if (stripedExecSvc != null) {
// Striped executor uses a custom adapter.
monitorStripedPool("StripedExecutor", stripedExecSvc);
}
if (snpExecSvc != null)
monitorExecutor("GridSnapshotExecutor", snpExecSvc);
if (thinClientExec != null)
monitorExecutor("GridThinClientExecutor", thinClientExec);
if (reencryptExecSvc != null)
monitorExecutor("GridReencryptionExecutor", reencryptExecSvc);
if (customExecs != null) {
for (Map.Entry<String, ? extends ExecutorService> entry : customExecs.entrySet()) monitorExecutor(entry.getKey(), entry.getValue());
}
ctx.systemView().registerInnerCollectionView(SYS_POOL_QUEUE_VIEW, SYS_POOL_QUEUE_VIEW_DESC, new StripedExecutorTaskViewWalker(), Arrays.asList(stripedExecSvc.stripes()), StripedExecutor.Stripe::queue, StripedExecutorTaskView::new);
ctx.systemView().registerInnerCollectionView(STREAM_POOL_QUEUE_VIEW, STREAM_POOL_QUEUE_VIEW_DESC, new StripedExecutorTaskViewWalker(), Arrays.asList(dataStreamerExecSvc.stripes()), StripedExecutor.Stripe::queue, StripedExecutorTaskView::new);
}
Aggregations