Search in sources :

Example 1 with ElasticSearchClient

use of org.janusgraph.diskstorage.es.ElasticSearchClient in project janusgraph by JanusGraph.

the class RestClientSetupTest method baseHostsConfigTest.

private List<HttpHost[]> baseHostsConfigTest(Map<String, String> extraConfigValues) throws Exception {
    final ElasticSearchClient elasticClient = baseConfigTest(ImmutableMap.<String, String>builder().putAll(extraConfigValues).build());
    assertSame(restElasticSearchClientMock, elasticClient);
    verify(restClientSetup).getRestClient(hostListCaptor.capture(), any(Configuration.class));
    return hostListCaptor.getAllValues();
}
Also used : BasicConfiguration(org.janusgraph.diskstorage.configuration.BasicConfiguration) Configuration(org.janusgraph.diskstorage.configuration.Configuration) CommonsConfiguration(org.janusgraph.diskstorage.configuration.backend.CommonsConfiguration) GraphDatabaseConfiguration(org.janusgraph.graphdb.configuration.GraphDatabaseConfiguration) ModifiableConfiguration(org.janusgraph.diskstorage.configuration.ModifiableConfiguration) ElasticSearchClient(org.janusgraph.diskstorage.es.ElasticSearchClient)

Aggregations

BasicConfiguration (org.janusgraph.diskstorage.configuration.BasicConfiguration)1 Configuration (org.janusgraph.diskstorage.configuration.Configuration)1 ModifiableConfiguration (org.janusgraph.diskstorage.configuration.ModifiableConfiguration)1 CommonsConfiguration (org.janusgraph.diskstorage.configuration.backend.CommonsConfiguration)1 ElasticSearchClient (org.janusgraph.diskstorage.es.ElasticSearchClient)1 GraphDatabaseConfiguration (org.janusgraph.graphdb.configuration.GraphDatabaseConfiguration)1