org.elasticsearch.action.admin.indices.template.delete.DeleteIndexTemplateRequestBuilder Java Examples
The following examples show how to use
org.elasticsearch.action.admin.indices.template.delete.DeleteIndexTemplateRequestBuilder.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: DefaultElasticSearchAdminService.java From vertx-elasticsearch-service with Apache License 2.0 | 6 votes |
@Override public void deleteTemplate(String name, TemplateOptions options, Handler<AsyncResult<Void>> resultHandler) { final DeleteIndexTemplateRequestBuilder builder = DeleteIndexTemplateAction.INSTANCE.newRequestBuilder(service.getClient()).setName(name); builder.execute(new ActionListener<DeleteIndexTemplateResponse>() { @Override public void onResponse(DeleteIndexTemplateResponse deleteIndexTemplateResponse) { JsonObject json = new JsonObject() .put("acknowledged", deleteIndexTemplateResponse.isAcknowledged()); resultHandler.handle(Future.succeededFuture()); } @Override public void onFailure(Exception e) { resultHandler.handle(Future.failedFuture(e)); } }); }
Example #2
Source File: AbstractClient.java From Elasticsearch with Apache License 2.0 | 4 votes |
@Override public DeleteIndexTemplateRequestBuilder prepareDeleteTemplate(String name) { return new DeleteIndexTemplateRequestBuilder(this, DeleteIndexTemplateAction.INSTANCE, name); }
Example #3
Source File: AbstractClient.java From crate with Apache License 2.0 | 4 votes |
@Override public DeleteIndexTemplateRequestBuilder prepareDeleteTemplate(String name) { return new DeleteIndexTemplateRequestBuilder(this, DeleteIndexTemplateAction.INSTANCE, name); }
Example #4
Source File: IndicesAdminClient.java From Elasticsearch with Apache License 2.0 | 2 votes |
/** * Deletes an index template. * * @param name The name of the template. */ DeleteIndexTemplateRequestBuilder prepareDeleteTemplate(String name);
Example #5
Source File: IndicesAdminClient.java From crate with Apache License 2.0 | 2 votes |
/** * Deletes an index template. * * @param name The name of the template. */ DeleteIndexTemplateRequestBuilder prepareDeleteTemplate(String name);