當前位置: 首頁>>代碼示例>>Java>>正文


Java TransportService.getTaskManager方法代碼示例

本文整理匯總了Java中org.elasticsearch.transport.TransportService.getTaskManager方法的典型用法代碼示例。如果您正苦於以下問題:Java TransportService.getTaskManager方法的具體用法?Java TransportService.getTaskManager怎麽用?Java TransportService.getTaskManager使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在org.elasticsearch.transport.TransportService的用法示例。


在下文中一共展示了TransportService.getTaskManager方法的7個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: TransportSQLAction

import org.elasticsearch.transport.TransportService; //導入方法依賴的package包/類
@Inject
public TransportSQLAction(
        ClusterService clusterService,
        Settings settings,
        ThreadPool threadPool,
        Analyzer analyzer,
        Planner planner,
        Provider<Executor> executor,
        TransportService transportService,
        StatsTables statsTables,
        ActionFilters actionFilters,
        IndexNameExpressionResolver indexNameExpressionResolver,
        TransportKillJobsNodeAction transportKillJobsNodeAction) {
    super(clusterService, settings, SQLAction.NAME, threadPool,
        analyzer, planner, executor, statsTables, actionFilters,
        indexNameExpressionResolver, transportKillJobsNodeAction,
        transportService.getTaskManager());
    transportService.registerRequestHandler(SQLAction.NAME, SQLRequest.class, ThreadPool.Names.SAME, new TransportHandler());
}
 
開發者ID:baidu,項目名稱:Elasticsearch,代碼行數:20,代碼來源:TransportSQLAction.java

示例2: TransportSQLBulkAction

import org.elasticsearch.transport.TransportService; //導入方法依賴的package包/類
@Inject
public TransportSQLBulkAction(ClusterService clusterService,
                              Settings settings,
                              ThreadPool threadPool,
                              Analyzer analyzer,
                              Planner planner,
                              Provider<Executor> executor,
                              TransportService transportService,
                              StatsTables statsTables,
                              ActionFilters actionFilters,
                              IndexNameExpressionResolver indexNameExpressionResolver,
                              TransportKillJobsNodeAction transportKillJobsNodeAction) {
    super(clusterService, settings, SQLBulkAction.NAME, threadPool, analyzer,
        planner, executor, statsTables, actionFilters, indexNameExpressionResolver, transportKillJobsNodeAction,
        transportService.getTaskManager());

    transportService.registerRequestHandler(SQLBulkAction.NAME, SQLBulkRequest.class, ThreadPool.Names.SAME, new TransportHandler());
}
 
開發者ID:baidu,項目名稱:Elasticsearch,代碼行數:19,代碼來源:TransportSQLBulkAction.java

示例3: TransportReplicationAction

import org.elasticsearch.transport.TransportService; //導入方法依賴的package包/類
protected TransportReplicationAction(Settings settings, String actionName, TransportService transportService,
                                     ClusterService clusterService, IndicesService indicesService,
                                     ThreadPool threadPool, ShardStateAction shardStateAction,
                                     ActionFilters actionFilters,
                                     IndexNameExpressionResolver indexNameExpressionResolver, Supplier<Request> request,
                                     Supplier<ReplicaRequest> replicaRequest, String executor) {
    super(settings, actionName, threadPool, actionFilters, indexNameExpressionResolver, transportService.getTaskManager());
    this.transportService = transportService;
    this.clusterService = clusterService;
    this.indicesService = indicesService;
    this.shardStateAction = shardStateAction;
    this.executor = executor;

    this.transportPrimaryAction = actionName + "[p]";
    this.transportReplicaAction = actionName + "[r]";
    transportService.registerRequestHandler(actionName, request, ThreadPool.Names.SAME, new OperationTransportHandler());
    transportService.registerRequestHandler(transportPrimaryAction, () -> new ConcreteShardRequest<>(request), executor,
        new PrimaryOperationTransportHandler());
    // we must never reject on because of thread pool capacity on replicas
    transportService.registerRequestHandler(transportReplicaAction,
        () -> new ConcreteShardRequest<>(replicaRequest),
        executor, true, true,
        new ReplicaOperationTransportHandler());

    this.transportOptions = transportOptions();

    this.replicasProxy = newReplicasProxy();
}
 
開發者ID:justor,項目名稱:elasticsearch_my,代碼行數:29,代碼來源:TransportReplicationAction.java

示例4: TransportSingleShardAction

import org.elasticsearch.transport.TransportService; //導入方法依賴的package包/類
protected TransportSingleShardAction(Settings settings, String actionName, ThreadPool threadPool, ClusterService clusterService,
                                     TransportService transportService, ActionFilters actionFilters, IndexNameExpressionResolver indexNameExpressionResolver,
                                     Supplier<Request> request, String executor) {
    super(settings, actionName, threadPool, actionFilters, indexNameExpressionResolver, transportService.getTaskManager());
    this.clusterService = clusterService;
    this.transportService = transportService;

    this.transportShardAction = actionName + "[s]";
    this.executor = executor;

    if (!isSubAction()) {
        transportService.registerRequestHandler(actionName, request, ThreadPool.Names.SAME, new TransportHandler());
    }
    transportService.registerRequestHandler(transportShardAction, request, executor, new ShardTransportHandler());
}
 
開發者ID:justor,項目名稱:elasticsearch_my,代碼行數:16,代碼來源:TransportSingleShardAction.java

示例5: HandledTransportAction

import org.elasticsearch.transport.TransportService; //導入方法依賴的package包/類
protected HandledTransportAction(Settings settings, String actionName, boolean canTripCircuitBreaker, ThreadPool threadPool,
                                 TransportService transportService, ActionFilters actionFilters,
                                 IndexNameExpressionResolver indexNameExpressionResolver, Supplier<Request> request) {
    super(settings, actionName, threadPool, actionFilters, indexNameExpressionResolver, transportService.getTaskManager());
    transportService.registerRequestHandler(actionName, request, ThreadPool.Names.SAME, false, canTripCircuitBreaker,
        new TransportHandler());
}
 
開發者ID:justor,項目名稱:elasticsearch_my,代碼行數:8,代碼來源:HandledTransportAction.java

示例6: InternalClusterService

import org.elasticsearch.transport.TransportService; //導入方法依賴的package包/類
@Inject
public InternalClusterService(Settings settings, DiscoveryService discoveryService, OperationRouting operationRouting, TransportService transportService,
                              NodeSettingsService nodeSettingsService, ThreadPool threadPool, ClusterName clusterName, DiscoveryNodeService discoveryNodeService, Version version) {
    super(settings);
    this.operationRouting = operationRouting;
    this.transportService = transportService;
    this.discoveryService = discoveryService;
    this.threadPool = threadPool;
    this.nodeSettingsService = nodeSettingsService;
    this.discoveryNodeService = discoveryNodeService;
    this.version = version;

    // will be replaced on doStart.
    this.clusterState = ClusterState.builder(clusterName).build();

    this.nodeSettingsService.setClusterService(this);
    this.nodeSettingsService.addListener(new ApplySettings());

    this.reconnectInterval = this.settings.getAsTime(SETTING_CLUSTER_SERVICE_RECONNECT_INTERVAL, TimeValue.timeValueSeconds(10));

    this.slowTaskLoggingThreshold = this.settings.getAsTime(SETTING_CLUSTER_SERVICE_SLOW_TASK_LOGGING_THRESHOLD, TimeValue.timeValueSeconds(30));

    localNodeMasterListeners = new LocalNodeMasterListeners(threadPool);

    initialBlocks = ClusterBlocks.builder().addGlobalBlock(discoveryService.getNoMasterBlock());

    taskManager = transportService.getTaskManager();

    this.auditService = new AuditService(nodeSettingsService);
}
 
開發者ID:baidu,項目名稱:Elasticsearch,代碼行數:31,代碼來源:InternalClusterService.java

示例7: HandledTransportAction

import org.elasticsearch.transport.TransportService; //導入方法依賴的package包/類
protected HandledTransportAction(Settings settings, String actionName, ThreadPool threadPool, TransportService transportService, ActionFilters actionFilters, IndexNameExpressionResolver indexNameExpressionResolver, Class<Request> request) {
    super(settings, actionName, threadPool, actionFilters, indexNameExpressionResolver, transportService.getTaskManager());
    transportService.registerRequestHandler(actionName, request, ThreadPool.Names.SAME, new TransportHandler());
}
 
開發者ID:baidu,項目名稱:Elasticsearch,代碼行數:5,代碼來源:HandledTransportAction.java


注:本文中的org.elasticsearch.transport.TransportService.getTaskManager方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。