public class RestClientSetup extends Object
RestClient from a JanusGraph
Configuration.| Constructor and Description |
|---|
RestClientSetup() |
| Modifier and Type | Method and Description |
|---|---|
ElasticSearchClient |
connect(Configuration config) |
protected RestClientAuthenticator |
getCustomAuthenticator(String authClassName,
String[] authClassConstructorArgList) |
protected RestElasticSearchClient |
getElasticSearchClient(org.elasticsearch.client.RestClient rc,
int scrollKeepAlive,
boolean useMappingTypesForES7) |
protected org.elasticsearch.client.RestClientBuilder.HttpClientConfigCallback |
getHttpClientConfigCallback(Configuration config)
Returns the callback for customizing
CloseableHttpAsyncClient or null if no
customization is needed. |
protected org.elasticsearch.client.RestClientBuilder.RequestConfigCallback |
getRequestConfigCallback(Configuration config)
Returns the callback for customizing the
RequestConfig or null if no
customization is needed. |
protected org.elasticsearch.client.RestClient |
getRestClient(org.apache.http.HttpHost[] hosts,
Configuration config) |
protected org.elasticsearch.client.RestClientBuilder |
getRestClientBuilder(org.apache.http.HttpHost[] hosts) |
protected SSLConfigurationCallback.Builder |
getSSLConfigurationCallbackBuilder() |
public ElasticSearchClient connect(Configuration config) throws IOException
IOExceptionprotected org.elasticsearch.client.RestClient getRestClient(org.apache.http.HttpHost[] hosts,
Configuration config)
protected org.elasticsearch.client.RestClientBuilder getRestClientBuilder(org.apache.http.HttpHost[] hosts)
protected RestElasticSearchClient getElasticSearchClient(org.elasticsearch.client.RestClient rc, int scrollKeepAlive, boolean useMappingTypesForES7)
protected org.elasticsearch.client.RestClientBuilder.RequestConfigCallback getRequestConfigCallback(Configuration config)
Returns the callback for customizing the RequestConfig or null if no
customization is needed.
See RestClientBuilder.setRequestConfigCallback(RequestConfigCallback) for more details.
config - ES index configurationprotected org.elasticsearch.client.RestClientBuilder.HttpClientConfigCallback getHttpClientConfigCallback(Configuration config)
Returns the callback for customizing CloseableHttpAsyncClient or null if no
customization is needed.
See RestClientBuilder.setHttpClientConfigCallback(HttpClientConfigCallback) for more details.
config - ES index configurationprotected SSLConfigurationCallback.Builder getSSLConfigurationCallbackBuilder()
protected RestClientAuthenticator getCustomAuthenticator(String authClassName, String[] authClassConstructorArgList)
Copyright © 2012–2024. All rights reserved.