Package org.elasticsearch.reindex
Class BulkIndexByScrollResponseContentListener
java.lang.Object
org.elasticsearch.rest.action.RestActionListener<Response>
org.elasticsearch.rest.action.RestResponseListener<Response>
org.elasticsearch.rest.action.RestBuilderListener<BulkByScrollResponse>
org.elasticsearch.reindex.BulkIndexByScrollResponseContentListener
- All Implemented Interfaces:
ActionListener<BulkByScrollResponse>
public class BulkIndexByScrollResponseContentListener
extends RestBuilderListener<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
ActionListener.Delegating<Response extends Object,DelegateResponse extends Object>, ActionListener.DelegatingActionListener<T extends Object>, ActionListener.DelegatingFailureActionListener<T extends Object, R extends Object>, ActionListener.MappedActionListener<Response extends Object, MappedResponse extends Object>, ActionListener.RunAfterActionListener<T extends Object>, ActionListener.RunBeforeActionListener<T extends Object> -
Field Summary
Fields inherited from class org.elasticsearch.rest.action.RestActionListener
channel -
Constructor Summary
ConstructorsConstructorDescriptionBulkIndexByScrollResponseContentListener(RestChannel channel, Map<String, String> params) -
Method Summary
Modifier and TypeMethodDescriptionbuildResponse(BulkByScrollResponse response, org.elasticsearch.xcontent.XContentBuilder builder) Methods inherited from class org.elasticsearch.rest.action.RestBuilderListener
buildResponseMethods inherited from class org.elasticsearch.rest.action.RestResponseListener
processResponseMethods inherited from class org.elasticsearch.rest.action.RestActionListener
ensureOpen, onFailure, onResponseMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.elasticsearch.action.ActionListener
delegateFailure, delegateResponse, map
-
Constructor Details
-
BulkIndexByScrollResponseContentListener
-
-
Method Details
-
buildResponse
public RestResponse buildResponse(BulkByScrollResponse response, org.elasticsearch.xcontent.XContentBuilder builder) throws Exception - Specified by:
buildResponsein classRestBuilderListener<BulkByScrollResponse>- Throws:
Exception
-