Package org.elasticsearch.index.reindex
Class TransportReindexAction
java.lang.Object
org.elasticsearch.action.support.TransportAction<Request,Response>
org.elasticsearch.action.support.HandledTransportAction<org.elasticsearch.index.reindex.ReindexRequest,org.elasticsearch.index.reindex.BulkByScrollResponse>
org.elasticsearch.index.reindex.TransportReindexAction
public class TransportReindexAction
extends org.elasticsearch.action.support.HandledTransportAction<org.elasticsearch.index.reindex.ReindexRequest,org.elasticsearch.index.reindex.BulkByScrollResponse>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected org.elasticsearch.client.Client
protected ReindexValidator
Fields inherited from class org.elasticsearch.action.support.TransportAction
actionName, localConnection, logger, taskManager
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
TransportReindexAction(String name, org.elasticsearch.common.settings.Settings settings, org.elasticsearch.threadpool.ThreadPool threadPool, org.elasticsearch.action.support.ActionFilters actionFilters, org.elasticsearch.cluster.metadata.IndexNameExpressionResolver indexNameExpressionResolver, org.elasticsearch.cluster.service.ClusterService clusterService, org.elasticsearch.script.ScriptService scriptService, org.elasticsearch.action.support.AutoCreateIndex autoCreateIndex, org.elasticsearch.client.Client client, org.elasticsearch.transport.TransportService transportService, ReindexSslConfig sslConfig)
TransportReindexAction(org.elasticsearch.common.settings.Settings settings, org.elasticsearch.threadpool.ThreadPool threadPool, org.elasticsearch.action.support.ActionFilters actionFilters, org.elasticsearch.cluster.metadata.IndexNameExpressionResolver indexNameExpressionResolver, org.elasticsearch.cluster.service.ClusterService clusterService, org.elasticsearch.script.ScriptService scriptService, org.elasticsearch.action.support.AutoCreateIndex autoCreateIndex, org.elasticsearch.client.Client client, org.elasticsearch.transport.TransportService transportService, ReindexSslConfig sslConfig)
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
doExecute(org.elasticsearch.tasks.Task task, org.elasticsearch.index.reindex.ReindexRequest request, org.elasticsearch.action.ActionListener<org.elasticsearch.index.reindex.BulkByScrollResponse> listener)
protected org.elasticsearch.client.Client
This method can be overridden to specify a differentClient
to be used for indexing than that used for the search/input part of the reindex.protected void
validate(org.elasticsearch.index.reindex.ReindexRequest request)
This method can be overridden if different than usual validation is needed.Methods inherited from class org.elasticsearch.action.support.TransportAction
execute, execute, execute
-
Field Details
-
REMOTE_CLUSTER_WHITELIST
-
reindexValidator
-
client
protected final org.elasticsearch.client.Client client
-
-
Constructor Details
-
TransportReindexAction
@Inject public TransportReindexAction(org.elasticsearch.common.settings.Settings settings, org.elasticsearch.threadpool.ThreadPool threadPool, org.elasticsearch.action.support.ActionFilters actionFilters, org.elasticsearch.cluster.metadata.IndexNameExpressionResolver indexNameExpressionResolver, org.elasticsearch.cluster.service.ClusterService clusterService, org.elasticsearch.script.ScriptService scriptService, org.elasticsearch.action.support.AutoCreateIndex autoCreateIndex, org.elasticsearch.client.Client client, org.elasticsearch.transport.TransportService transportService, ReindexSslConfig sslConfig) -
TransportReindexAction
protected TransportReindexAction(String name, org.elasticsearch.common.settings.Settings settings, org.elasticsearch.threadpool.ThreadPool threadPool, org.elasticsearch.action.support.ActionFilters actionFilters, org.elasticsearch.cluster.metadata.IndexNameExpressionResolver indexNameExpressionResolver, org.elasticsearch.cluster.service.ClusterService clusterService, org.elasticsearch.script.ScriptService scriptService, org.elasticsearch.action.support.AutoCreateIndex autoCreateIndex, org.elasticsearch.client.Client client, org.elasticsearch.transport.TransportService transportService, ReindexSslConfig sslConfig)
-
-
Method Details
-
doExecute
protected void doExecute(org.elasticsearch.tasks.Task task, org.elasticsearch.index.reindex.ReindexRequest request, org.elasticsearch.action.ActionListener<org.elasticsearch.index.reindex.BulkByScrollResponse> listener)- Specified by:
doExecute
in classorg.elasticsearch.action.support.TransportAction<org.elasticsearch.index.reindex.ReindexRequest,org.elasticsearch.index.reindex.BulkByScrollResponse>
-
getBulkClient
protected org.elasticsearch.client.Client getBulkClient()This method can be overridden to specify a differentClient
to be used for indexing than that used for the search/input part of the reindex. For example, aFilterClient
can be provided to transform bulk index requests before they are fully performed. -
validate
protected void validate(org.elasticsearch.index.reindex.ReindexRequest request)This method can be overridden if different than usual validation is needed. This method should throw an exception if validation fails.
-