Class RestReindexAction

  • All Implemented Interfaces:
    org.elasticsearch.rest.RestHandler

    public class RestReindexAction
    extends AbstractBaseReindexRestHandler<org.elasticsearch.index.reindex.ReindexRequest,org.elasticsearch.index.reindex.ReindexAction>
    Expose reindex over rest.
    • Nested Class Summary

      • Nested classes/interfaces inherited from class org.elasticsearch.rest.BaseRestHandler

        org.elasticsearch.rest.BaseRestHandler.RestChannelConsumer
    • Field Summary

      • Fields inherited from class org.elasticsearch.common.component.AbstractComponent

        deprecationLogger, logger, settings
      • Fields inherited from class org.elasticsearch.rest.BaseRestHandler

        MULTI_ALLOW_EXPLICIT_INDEX
    • Constructor Summary

      Constructors 
      Constructor Description
      RestReindexAction​(org.elasticsearch.common.settings.Settings settings, org.elasticsearch.rest.RestController controller)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected org.elasticsearch.index.reindex.ReindexRequest buildRequest​(org.elasticsearch.rest.RestRequest request)
      Build the Request based on the RestRequest.
      java.lang.String getName()  
      org.elasticsearch.rest.BaseRestHandler.RestChannelConsumer prepareRequest​(org.elasticsearch.rest.RestRequest request, org.elasticsearch.client.node.NodeClient client)  
      • Methods inherited from class org.elasticsearch.common.component.AbstractComponent

        logDeprecatedSetting, logRemovedSetting, nodeName
      • Methods inherited from class org.elasticsearch.rest.BaseRestHandler

        getUsageCount, handleRequest, responseParams, unrecognized
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface org.elasticsearch.rest.RestHandler

        canTripCircuitBreaker, supportsContentStream
    • Constructor Detail

      • RestReindexAction

        public RestReindexAction​(org.elasticsearch.common.settings.Settings settings,
                                 org.elasticsearch.rest.RestController controller)
    • Method Detail

      • getName

        public java.lang.String getName()
        Specified by:
        getName in class org.elasticsearch.rest.BaseRestHandler
      • prepareRequest

        public org.elasticsearch.rest.BaseRestHandler.RestChannelConsumer prepareRequest​(org.elasticsearch.rest.RestRequest request,
                                                                                         org.elasticsearch.client.node.NodeClient client)
                                                                                  throws java.io.IOException
        Specified by:
        prepareRequest in class org.elasticsearch.rest.BaseRestHandler
        Throws:
        java.io.IOException
      • buildRequest

        protected org.elasticsearch.index.reindex.ReindexRequest buildRequest​(org.elasticsearch.rest.RestRequest request)
                                                                       throws java.io.IOException
        Description copied from class: AbstractBaseReindexRestHandler
        Build the Request based on the RestRequest.
        Specified by:
        buildRequest in class AbstractBaseReindexRestHandler<org.elasticsearch.index.reindex.ReindexRequest,org.elasticsearch.index.reindex.ReindexAction>
        Throws:
        java.io.IOException