本文整理汇总了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());
}