Package org.elasticsearch.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.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 final org.elasticsearch.client.Clientprotected final ReindexValidatorFields inherited from class org.elasticsearch.action.support.TransportAction
actionName, localConnection, logger, taskManager -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedTransportReindexAction(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 voiddoExecute(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.ClientThis method can be overridden to specify a differentClientto be used for indexing than that used for the search/input part of the reindex.protected voidvalidate(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:
doExecutein 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 differentClientto be used for indexing than that used for the search/input part of the reindex. For example, aFilterClientcan 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.
-