Class BulkIndexByScrollResponseContentListener

  • All Implemented Interfaces:
    org.elasticsearch.action.ActionListener<org.elasticsearch.index.reindex.BulkByScrollResponse>

    public class BulkIndexByScrollResponseContentListener
    extends org.elasticsearch.rest.action.RestBuilderListener<org.elasticsearch.index.reindex.BulkByScrollResponse>
    RestBuilderListener that returns higher than 200 status if there are any failures and allows to set XContent.Params.
    • Field Summary

      • Fields inherited from class org.elasticsearch.rest.action.RestActionListener

        channel
    • Constructor Summary

      Constructors 
      Constructor Description
      BulkIndexByScrollResponseContentListener​(org.elasticsearch.rest.RestChannel channel, java.util.Map<java.lang.String,java.lang.String> params)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.elasticsearch.rest.RestResponse buildResponse​(org.elasticsearch.index.reindex.BulkByScrollResponse response, org.elasticsearch.common.xcontent.XContentBuilder builder)  
      • Methods inherited from interface org.elasticsearch.action.ActionListener

      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from class org.elasticsearch.rest.action.RestActionListener

        onFailure, onResponse
      • Methods inherited from class org.elasticsearch.rest.action.RestBuilderListener

        buildResponse
      • Methods inherited from class org.elasticsearch.rest.action.RestResponseListener

        processResponse
    • Constructor Detail

      • BulkIndexByScrollResponseContentListener

        public BulkIndexByScrollResponseContentListener​(org.elasticsearch.rest.RestChannel channel,
                                                        java.util.Map<java.lang.String,java.lang.String> params)
    • Method Detail

      • buildResponse

        public org.elasticsearch.rest.RestResponse buildResponse​(org.elasticsearch.index.reindex.BulkByScrollResponse response,
                                                                 org.elasticsearch.common.xcontent.XContentBuilder builder)
                                                          throws java.lang.Exception
        Specified by:
        buildResponse in class org.elasticsearch.rest.action.RestBuilderListener<org.elasticsearch.index.reindex.BulkByScrollResponse>
        Throws:
        java.lang.Exception