public class RemoteCollectorFactory
extends java.lang.Object
Constructor and Description |
---|
RemoteCollectorFactory(org.elasticsearch.cluster.service.ClusterService clusterService,
JobContextService jobContextService,
TransportActionProvider transportActionProvider,
org.elasticsearch.indices.IndicesService indicesService,
org.elasticsearch.threadpool.ThreadPool threadPool) |
Modifier and Type | Method and Description |
---|---|
CrateCollector.Builder |
createCollector(org.elasticsearch.index.shard.ShardId shardId,
RoutedCollectPhase collectPhase,
JobCollectContext jobCollectContext,
ShardCollectorProviderFactory shardCollectorProviderFactory)
create a RemoteCollector
The RemoteCollector will collect data from another node using a wormhole as if it was collecting on this node.
|
@Inject public RemoteCollectorFactory(org.elasticsearch.cluster.service.ClusterService clusterService, JobContextService jobContextService, TransportActionProvider transportActionProvider, org.elasticsearch.indices.IndicesService indicesService, org.elasticsearch.threadpool.ThreadPool threadPool)
public CrateCollector.Builder createCollector(org.elasticsearch.index.shard.ShardId shardId, RoutedCollectPhase collectPhase, JobCollectContext jobCollectContext, ShardCollectorProviderFactory shardCollectorProviderFactory)
This should only be used if a shard is not available on the current node due to a relocation