public static class ElasticsearchRule.Builder extends Object
| Modifier and Type | Method and Description |
|---|---|
ElasticsearchRule |
build()
Build an
ElasticsearchRule with the given configuration. |
ElasticsearchRule.Builder |
configure(ElasticsearchConfiguration elasticsearchConfiguration)
Configure the
ElasticsearchRule with the given configuration. |
ElasticsearchRule |
remoteElasticsearch()
Build an
ElasticsearchRule with the default configuration (connecting to http://localhost:9200). |
ElasticsearchRule |
remoteElasticsearch(Set<String> servers)
Build an
ElasticsearchRule with the default configuration (connecting to the given Elasticsearch nodes). |
ElasticsearchRule |
remoteElasticsearch(String server)
Build an
ElasticsearchRule with the default configuration (connecting to the given Elasticsearch node). |
ElasticsearchRule.Builder |
unitInstance(Object target) |
public ElasticsearchRule.Builder configure(ElasticsearchConfiguration elasticsearchConfiguration)
ElasticsearchRule with the given configuration.elasticsearchConfiguration - The configuration for the ElasticsearchRulepublic ElasticsearchRule.Builder unitInstance(Object target)
public ElasticsearchRule remoteElasticsearch()
ElasticsearchRule with the default configuration (connecting to http://localhost:9200).ElasticsearchRule using the default configurationpublic ElasticsearchRule remoteElasticsearch(String server)
ElasticsearchRule with the default configuration (connecting to the given Elasticsearch node).ElasticsearchRule using the default configurationpublic ElasticsearchRule remoteElasticsearch(Set<String> servers)
ElasticsearchRule with the default configuration (connecting to the given Elasticsearch nodes).ElasticsearchRule using the default configurationpublic ElasticsearchRule build()
ElasticsearchRule with the given configuration.ElasticsearchRule using the given configurationconfigure(ElasticsearchConfiguration)Copyright © 2017. All rights reserved.