public interface ElasticsearchRequestSuccessAssessor
| Modifier and Type | Method and Description |
|---|---|
void |
checkSuccess(ElasticsearchWorkExecutionContext context,
ElasticsearchRequest request,
org.elasticsearch.client.Response response,
com.google.gson.JsonObject parsedResponseBody)
Check the given response, throwing an exception if the reponse indicates a failure.
|
boolean |
isSuccess(ElasticsearchWorkExecutionContext context,
com.google.gson.JsonObject bulkResponseItem)
Check the given response, return
true if it is successful, false otherwise. |
void checkSuccess(ElasticsearchWorkExecutionContext context, ElasticsearchRequest request, org.elasticsearch.client.Response response, com.google.gson.JsonObject parsedResponseBody) throws SearchException
context - The context in which the request was executed.request - The request whose success is to be assessed.response - The response, containing information about the outcome of the request.parsedResponseBody - The response body parsed as JSON.SearchException - If the result is a failure.boolean isSuccess(ElasticsearchWorkExecutionContext context, com.google.gson.JsonObject bulkResponseItem)
true if it is successful, false otherwise.context - The context in which the request was executed.bulkResponseItem - The part of the response body concerning the request whose success is to be assessed.true if the result is successful, false otherwise.Copyright © 2006–2017 Hibernate. All rights reserved.