Class BulkIndexByScrollResponseContentListener

java.lang.Object
org.elasticsearch.rest.action.RestActionListener<Response>
org.elasticsearch.rest.action.RestResponseListener<Response>
org.elasticsearch.rest.action.RestBuilderListener<org.elasticsearch.index.reindex.BulkByScrollResponse>
org.elasticsearch.index.reindex.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.
  • Nested Class Summary

    Nested classes/interfaces inherited from interface org.elasticsearch.action.ActionListener

    org.elasticsearch.action.ActionListener.Delegating<Response extends java.lang.Object,​DelegateResponse extends java.lang.Object>, org.elasticsearch.action.ActionListener.DelegatingActionListener<T extends java.lang.Object>, org.elasticsearch.action.ActionListener.DelegatingFailureActionListener<T extends java.lang.Object,​R extends java.lang.Object>, org.elasticsearch.action.ActionListener.MappedActionListener<Response extends java.lang.Object,​MappedResponse extends java.lang.Object>, org.elasticsearch.action.ActionListener.RunAfterActionListener<T extends java.lang.Object>, org.elasticsearch.action.ActionListener.RunBeforeActionListener<T extends java.lang.Object>
  • 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

    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 class org.elasticsearch.rest.action.RestBuilderListener

    buildResponse

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

    processResponse

    Methods inherited from class org.elasticsearch.rest.action.RestActionListener

    onFailure, onResponse

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.elasticsearch.action.ActionListener

    delegateFailure, delegateResponse, map
  • Constructor Details

    • BulkIndexByScrollResponseContentListener

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

    • 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