public final class IndicesClient
extends java.lang.Object
RestHighLevelClient
that provides methods for accessing the Indices API.
Modifier and Type | Method | Description |
---|---|---|
CloseIndexResponse |
close(CloseIndexRequest closeIndexRequest,
org.apache.http.Header... headers) |
Closes an index using the Close Index API
|
void |
closeAsync(CloseIndexRequest closeIndexRequest,
ActionListener<CloseIndexResponse> listener,
org.apache.http.Header... headers) |
Asynchronously closes an index using the Close Index API
|
CreateIndexResponse |
create(CreateIndexRequest createIndexRequest,
org.apache.http.Header... headers) |
Creates an index using the Create Index API
|
void |
createAsync(CreateIndexRequest createIndexRequest,
ActionListener<CreateIndexResponse> listener,
org.apache.http.Header... headers) |
Asynchronously creates an index using the Create Index API
|
DeleteIndexResponse |
delete(DeleteIndexRequest deleteIndexRequest,
org.apache.http.Header... headers) |
Deletes an index using the Delete Index API
|
void |
deleteAsync(DeleteIndexRequest deleteIndexRequest,
ActionListener<DeleteIndexResponse> listener,
org.apache.http.Header... headers) |
Asynchronously deletes an index using the Delete Index API
|
OpenIndexResponse |
open(OpenIndexRequest openIndexRequest,
org.apache.http.Header... headers) |
Opens an index using the Open Index API
|
void |
openAsync(OpenIndexRequest openIndexRequest,
ActionListener<OpenIndexResponse> listener,
org.apache.http.Header... headers) |
Asynchronously opens an index using the Open Index API
|
public DeleteIndexResponse delete(DeleteIndexRequest deleteIndexRequest, org.apache.http.Header... headers) throws java.io.IOException
java.io.IOException
public void deleteAsync(DeleteIndexRequest deleteIndexRequest, ActionListener<DeleteIndexResponse> listener, org.apache.http.Header... headers)
public CreateIndexResponse create(CreateIndexRequest createIndexRequest, org.apache.http.Header... headers) throws java.io.IOException
java.io.IOException
public void createAsync(CreateIndexRequest createIndexRequest, ActionListener<CreateIndexResponse> listener, org.apache.http.Header... headers)
public OpenIndexResponse open(OpenIndexRequest openIndexRequest, org.apache.http.Header... headers) throws java.io.IOException
java.io.IOException
public void openAsync(OpenIndexRequest openIndexRequest, ActionListener<OpenIndexResponse> listener, org.apache.http.Header... headers)
public CloseIndexResponse close(CloseIndexRequest closeIndexRequest, org.apache.http.Header... headers) throws java.io.IOException
java.io.IOException
public void closeAsync(CloseIndexRequest closeIndexRequest, ActionListener<CloseIndexResponse> listener, org.apache.http.Header... headers)