Index

A B C D E F G H I N O P R S T W 
All Classes|All Packages

A

addHeader(String, String) - Method in class org.elasticsearch.client.RequestOptions.Builder
Add the provided header to the request.
addParameter(String, String) - Method in class org.elasticsearch.client.Request
Add a query string parameter.
addParameters(Map<String, String>) - Method in class org.elasticsearch.client.Request
 
ANY - Static variable in interface org.elasticsearch.client.NodeSelector
Selector that matches any node.

B

build() - Method in class org.elasticsearch.client.RequestOptions.Builder
Build the RequestOptions.
build() - Method in class org.elasticsearch.client.RestClientBuilder
Creates a new RestClient based on the provided configuration.
builder(String) - Static method in class org.elasticsearch.client.RestClient
Returns a new RestClientBuilder to help with RestClient creation.
builder(HttpHost...) - Static method in class org.elasticsearch.client.RestClient
Returns a new RestClientBuilder to help with RestClient creation.
builder(Node...) - Static method in class org.elasticsearch.client.RestClient
Returns a new RestClientBuilder to help with RestClient creation.
buildResult(HttpContext) - Method in class org.elasticsearch.client.HeapBufferedAsyncResponseConsumer
 

C

cancel() - Method in class org.elasticsearch.client.Cancellable
Cancels the on-going request that is associated with the current instance of Cancellable.
Cancellable - Class in org.elasticsearch.client
Represents an operation that can be cancelled.
cleanPathPrefix(String) - Static method in class org.elasticsearch.client.RestClientBuilder
 
close() - Method in class org.elasticsearch.client.RestClient
 
createHttpAsyncResponseConsumer() - Method in interface org.elasticsearch.client.HttpAsyncResponseConsumerFactory
Creates the HttpAsyncResponseConsumer, called once per request attempt.
createHttpAsyncResponseConsumer() - Method in class org.elasticsearch.client.HttpAsyncResponseConsumerFactory.HeapBufferedResponseConsumerFactory
 
customizeHttpClient(HttpAsyncClientBuilder) - Method in interface org.elasticsearch.client.RestClientBuilder.HttpClientConfigCallback
Allows to customize the CloseableHttpAsyncClient being created and used by the RestClient.
customizeRequestConfig(RequestConfig.Builder) - Method in interface org.elasticsearch.client.RestClientBuilder.RequestConfigCallback
Allows to customize the RequestConfig that will be used with each request.

D

DEFAULT - Static variable in interface org.elasticsearch.client.HttpAsyncResponseConsumerFactory
Creates the default type of HttpAsyncResponseConsumer, based on heap buffering with a buffer limit of 100MB.
DEFAULT - Static variable in class org.elasticsearch.client.RequestOptions
Default request options.
DEFAULT_CONNECT_TIMEOUT_MILLIS - Static variable in class org.elasticsearch.client.RestClientBuilder
 
DEFAULT_MAX_CONN_PER_ROUTE - Static variable in class org.elasticsearch.client.RestClientBuilder
 
DEFAULT_MAX_CONN_TOTAL - Static variable in class org.elasticsearch.client.RestClientBuilder
 
DEFAULT_SOCKET_TIMEOUT_MILLIS - Static variable in class org.elasticsearch.client.RestClientBuilder
 

E

equals(Object) - Method in class org.elasticsearch.client.HasAttributeNodeSelector
 
equals(Object) - Method in class org.elasticsearch.client.Node
 
equals(Object) - Method in class org.elasticsearch.client.Node.Roles
 
equals(Object) - Method in class org.elasticsearch.client.PreferHasAttributeNodeSelector
 
equals(Object) - Method in class org.elasticsearch.client.Request
 
equals(Object) - Method in class org.elasticsearch.client.RequestOptions
 

F

FailureListener() - Constructor for class org.elasticsearch.client.RestClient.FailureListener
 

G

getAttributes() - Method in class org.elasticsearch.client.Node
Attributes declared on the node.
getBoundHosts() - Method in class org.elasticsearch.client.Node
Addresses on which the host is listening.
getBufferLimit() - Method in class org.elasticsearch.client.HeapBufferedAsyncResponseConsumer
Get the limit of the buffer.
getByteBufferAllocator() - Method in class org.elasticsearch.client.HeapBufferedAsyncResponseConsumer
Returns the instance of ByteBufferAllocator to use for content buffering.
getEndpoint() - Method in class org.elasticsearch.client.Request
The path of the request (without scheme, host, port, or prefix).
getEntity() - Method in class org.elasticsearch.client.Request
The body of the request.
getEntity() - Method in class org.elasticsearch.client.Response
Returns the response body available, null otherwise
getHeader(String) - Method in class org.elasticsearch.client.Response
Returns the value of the first header with a specified name of this message.
getHeaders() - Method in class org.elasticsearch.client.RequestOptions
Headers to attach to the request.
getHeaders() - Method in class org.elasticsearch.client.Response
Returns all the response headers
getHost() - Method in class org.elasticsearch.client.Node
Contact information for the host.
getHost() - Method in class org.elasticsearch.client.Response
Returns the node that returned this response
getHttpAsyncResponseConsumerFactory() - Method in class org.elasticsearch.client.RequestOptions
The HttpAsyncResponseConsumerFactory used to create one HttpAsyncResponseConsumer callback per retry.
getMethod() - Method in class org.elasticsearch.client.Request
The HTTP method.
getName() - Method in class org.elasticsearch.client.Node
The node.name of the node.
getNodes() - Method in class org.elasticsearch.client.RestClient
Get the list of nodes that the client knows about.
getOptions() - Method in class org.elasticsearch.client.Request
Get the portion of an HTTP request to Elasticsearch that can be manipulated without changing Elasticsearch's behavior.
getParameters() - Method in class org.elasticsearch.client.Request
Query string parameters.
getRequestLine() - Method in class org.elasticsearch.client.Response
Returns the request line that generated this response
getResponse() - Method in exception org.elasticsearch.client.ResponseException
Returns the Response that caused this exception to be thrown.
getResponse() - Method in exception org.elasticsearch.client.WarningFailureException
Returns the Response that caused this exception to be thrown.
getRoles() - Method in class org.elasticsearch.client.Node
Roles that the Elasticsearch process on the host has or null if we don't know what roles the node has.
getStatusLine() - Method in class org.elasticsearch.client.Response
Returns the status line of the current response
getVersion() - Method in class org.elasticsearch.client.Node
Version of Elasticsearch that the node is running or null if we don't know the version.
getWarnings() - Method in class org.elasticsearch.client.Response
Returns a list of all warning headers returned in the response.
getWarningsHandler() - Method in class org.elasticsearch.client.RequestOptions
How this request should handle warnings.

H

HasAttributeNodeSelector - Class in org.elasticsearch.client
A NodeSelector that selects nodes that have a particular value for an attribute.
HasAttributeNodeSelector(String, String) - Constructor for class org.elasticsearch.client.HasAttributeNodeSelector
 
hashCode() - Method in class org.elasticsearch.client.HasAttributeNodeSelector
 
hashCode() - Method in class org.elasticsearch.client.Node
 
hashCode() - Method in class org.elasticsearch.client.Node.Roles
 
hashCode() - Method in class org.elasticsearch.client.PreferHasAttributeNodeSelector
 
hashCode() - Method in class org.elasticsearch.client.Request
 
hashCode() - Method in class org.elasticsearch.client.RequestOptions
 
hasWarnings() - Method in class org.elasticsearch.client.Response
Returns true if there is at least one warning header returned in the response.
HeapBufferedAsyncResponseConsumer - Class in org.elasticsearch.client
Default implementation of HttpAsyncResponseConsumer.
HeapBufferedAsyncResponseConsumer(int) - Constructor for class org.elasticsearch.client.HeapBufferedAsyncResponseConsumer
Creates a new instance of this consumer with the provided buffer limit
HeapBufferedResponseConsumerFactory(int) - Constructor for class org.elasticsearch.client.HttpAsyncResponseConsumerFactory.HeapBufferedResponseConsumerFactory
 
HttpAsyncResponseConsumerFactory - Interface in org.elasticsearch.client
Factory used to create instances of HttpAsyncResponseConsumer.
HttpAsyncResponseConsumerFactory.HeapBufferedResponseConsumerFactory - Class in org.elasticsearch.client
Default factory used to create instances of HttpAsyncResponseConsumer.

I

isData() - Method in class org.elasticsearch.client.Node.Roles
Teturns whether or not the node stores data.
isIngest() - Method in class org.elasticsearch.client.Node.Roles
Teturns whether or not the node runs ingest pipelines.
isMasterEligible() - Method in class org.elasticsearch.client.Node.Roles
Teturns whether or not the node could be elected master.

N

Node - Class in org.elasticsearch.client
Metadata about an HttpHost running Elasticsearch.
Node(HttpHost) - Constructor for class org.elasticsearch.client.Node
Create a Node without any metadata.
Node(HttpHost, Set<HttpHost>, String, String, Node.Roles, Map<String, List<String>>) - Constructor for class org.elasticsearch.client.Node
Create a Node with metadata.
Node.Roles - Class in org.elasticsearch.client
Role information about an Elasticsearch process.
NodeSelector - Interface in org.elasticsearch.client
Selects nodes that can receive requests.

O

onContentReceived(ContentDecoder, IOControl) - Method in class org.elasticsearch.client.HeapBufferedAsyncResponseConsumer
 
onEntityEnclosed(HttpEntity, ContentType) - Method in class org.elasticsearch.client.HeapBufferedAsyncResponseConsumer
 
onFailure(Exception) - Method in interface org.elasticsearch.client.ResponseListener
Method invoked if the request failed.
onFailure(Node) - Method in class org.elasticsearch.client.RestClient.FailureListener
Notifies that the node provided as argument has just failed
onResponseReceived(HttpResponse) - Method in class org.elasticsearch.client.HeapBufferedAsyncResponseConsumer
 
onSuccess(Response) - Method in interface org.elasticsearch.client.ResponseListener
Method invoked if the request yielded a successful response
org.elasticsearch.client - package org.elasticsearch.client
 

P

performRequest(Request) - Method in class org.elasticsearch.client.RestClient
Sends a request to the Elasticsearch cluster that the client points to.
performRequestAsync(Request, ResponseListener) - Method in class org.elasticsearch.client.RestClient
Sends a request to the Elasticsearch cluster that the client points to.
PERMISSIVE - Static variable in interface org.elasticsearch.client.WarningsHandler
 
PreferHasAttributeNodeSelector - Class in org.elasticsearch.client
Both PreferHasAttributeNodeSelector and HasAttributeNodeSelector will work the same if there is a Node with particular attribute in the attributes, but PreferHasAttributeNodeSelector will select another Nodes even if there is no Node with particular attribute in the attributes.
PreferHasAttributeNodeSelector(String, String) - Constructor for class org.elasticsearch.client.PreferHasAttributeNodeSelector
 

R

releaseResources() - Method in class org.elasticsearch.client.HeapBufferedAsyncResponseConsumer
 
Request - Class in org.elasticsearch.client
HTTP Request to Elasticsearch.
Request(String, String) - Constructor for class org.elasticsearch.client.Request
Create the Request.
RequestOptions - Class in org.elasticsearch.client
The portion of an HTTP request to Elasticsearch that can be manipulated without changing Elasticsearch's behavior.
RequestOptions.Builder - Class in org.elasticsearch.client
Response - Class in org.elasticsearch.client
Holds an elasticsearch response.
ResponseException - Exception in org.elasticsearch.client
Exception thrown when an elasticsearch node responds to a request with a status code that indicates an error.
ResponseException(Response) - Constructor for exception org.elasticsearch.client.ResponseException
 
ResponseListener - Interface in org.elasticsearch.client
Listener to be provided when calling async performRequest methods provided by RestClient.
RestClient - Class in org.elasticsearch.client
Client that connects to an Elasticsearch cluster through HTTP.
RestClient.FailureListener - Class in org.elasticsearch.client
Listener that allows to be notified whenever a failure happens.
RestClientBuilder - Class in org.elasticsearch.client
Helps creating a new RestClient.
RestClientBuilder.HttpClientConfigCallback - Interface in org.elasticsearch.client
Callback used to customize the CloseableHttpClient instance used by a RestClient instance.
RestClientBuilder.RequestConfigCallback - Interface in org.elasticsearch.client
Callback used the default RequestConfig being set to the CloseableHttpClient
Roles(Set<String>) - Constructor for class org.elasticsearch.client.Node.Roles
 

S

select(Iterable<Node>) - Method in class org.elasticsearch.client.HasAttributeNodeSelector
 
select(Iterable<Node>) - Method in interface org.elasticsearch.client.NodeSelector
Select the Nodes to which to send requests.
select(Iterable<Node>) - Method in class org.elasticsearch.client.PreferHasAttributeNodeSelector
 
setDefaultHeaders(Header[]) - Method in class org.elasticsearch.client.RestClientBuilder
Sets the default request headers, which will be sent along with each request.
setEntity(HttpEntity) - Method in class org.elasticsearch.client.Request
Set the body of the request.
setFailureListener(RestClient.FailureListener) - Method in class org.elasticsearch.client.RestClientBuilder
Sets the RestClient.FailureListener to be notified for each request failure
setHttpAsyncResponseConsumerFactory(HttpAsyncResponseConsumerFactory) - Method in class org.elasticsearch.client.RequestOptions.Builder
Set the HttpAsyncResponseConsumerFactory used to create one HttpAsyncResponseConsumer callback per retry.
setHttpClientConfigCallback(RestClientBuilder.HttpClientConfigCallback) - Method in class org.elasticsearch.client.RestClientBuilder
Sets the RestClientBuilder.HttpClientConfigCallback to be used to customize http client configuration
setJsonEntity(String) - Method in class org.elasticsearch.client.Request
Set the body of the request to a string.
setNodes(Collection<Node>) - Method in class org.elasticsearch.client.RestClient
Replaces the nodes with which the client communicates.
setNodeSelector(NodeSelector) - Method in class org.elasticsearch.client.RestClientBuilder
Sets the NodeSelector to be used for all requests.
setOptions(RequestOptions) - Method in class org.elasticsearch.client.Request
Set the portion of an HTTP request to Elasticsearch that can be manipulated without changing Elasticsearch's behavior.
setOptions(RequestOptions.Builder) - Method in class org.elasticsearch.client.Request
Set the portion of an HTTP request to Elasticsearch that can be manipulated without changing Elasticsearch's behavior.
setPathPrefix(String) - Method in class org.elasticsearch.client.RestClientBuilder
Sets the path's prefix for every request used by the http client.
setRequestConfigCallback(RestClientBuilder.RequestConfigCallback) - Method in class org.elasticsearch.client.RestClientBuilder
Sets the RestClientBuilder.RequestConfigCallback to be used to customize http client configuration
setStrictDeprecationMode(boolean) - Method in class org.elasticsearch.client.RestClientBuilder
Whether the REST client should return any response containing at least one warning header as a failure.
setWarningsHandler(WarningsHandler) - Method in class org.elasticsearch.client.RequestOptions.Builder
How this request should handle warnings.
SKIP_DEDICATED_MASTERS - Static variable in interface org.elasticsearch.client.NodeSelector
Selector that matches any node that has metadata and doesn't have the master role OR it has the data data role.
STRICT - Static variable in interface org.elasticsearch.client.WarningsHandler
 

T

toBuilder() - Method in class org.elasticsearch.client.RequestOptions
Create a builder that contains these options but can be modified.
toString() - Method in class org.elasticsearch.client.HasAttributeNodeSelector
 
toString() - Method in class org.elasticsearch.client.Node.Roles
 
toString() - Method in class org.elasticsearch.client.Node
 
toString() - Method in class org.elasticsearch.client.PreferHasAttributeNodeSelector
 
toString() - Method in class org.elasticsearch.client.Request
 
toString() - Method in class org.elasticsearch.client.RequestOptions
 
toString() - Method in class org.elasticsearch.client.Response
 

W

WarningFailureException - Exception in org.elasticsearch.client
This exception is used to indicate that one or more Response.getWarnings() exist and is typically used when the RestClient is set to fail by setting RestClientBuilder.setStrictDeprecationMode(boolean) to `true`.
WarningFailureException(Response) - Constructor for exception org.elasticsearch.client.WarningFailureException
 
WarningsHandler - Interface in org.elasticsearch.client
Called if there are warnings to determine if those warnings should fail the request.
warningsShouldFailRequest(List<String>) - Method in interface org.elasticsearch.client.WarningsHandler
 
A B C D E F G H I N O P R S T W 
All Classes|All Packages