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
Fields Modifier and Type Field Description protected org.elasticsearch.client.Clientclientprotected ReindexValidatorreindexValidatorstatic org.elasticsearch.common.settings.Setting<java.util.List<java.lang.String>>REMOTE_CLUSTER_WHITELISTFields inherited from class org.elasticsearch.action.support.TransportAction
actionName, localConnection, logger, taskManager -
Constructor Summary
Constructors Modifier Constructor Description protectedTransportReindexAction(java.lang.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 Type Method Description protected 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.ClientgetBulkClient()This 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, executeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
REMOTE_CLUSTER_WHITELIST
public static final org.elasticsearch.common.settings.Setting<java.util.List<java.lang.String>> 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(java.lang.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.
-