本文整理匯總了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());
}
示例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());
}
示例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();
}
示例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());
}
示例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());
}
示例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);
}
示例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());
}