ElasticDataStoreFactory implements DataStoreFactorySpi { public RestClientBuilder createClientBuilder(HttpHost[] hosts) { return RestClient.builder(hosts); }  @Override String getDisplayName(); @Override String getDescription(); @Override Param[] getParametersInfo(); @Override boolean canProcess(Map<String, Serializable> params); @Override boolean isAvailable(); @Override Map<Key, ?> getImplementationHints(); @Override DataStore createDataStore(Map<String, Serializable> params); DataStore createDataStore(RestClient client, RestClient proxyClient, Map<String, Serializable> params); RestClient createRestClient(Map<String, Serializable> params); @Override DataStore createNewDataStore(Map<String, Serializable> params); RestClientBuilder createClientBuilder(HttpHost[] hosts); static final String DISPLAY_NAME; static final String DESCRIPTION; static final Param HOSTNAME; static final Param HOSTPORT; static final Param INDEX_NAME; static final Param USER; static final Param PASSWD; static final Param RUNAS_GEOSERVER_USER; static final Param PROXY_USER; static final Param PROXY_PASSWD; static final Param SSL_REJECT_UNAUTHORIZED; static final Param SOURCE_FILTERING_ENABLED; static final Param SCROLL_ENABLED; static final Param SCROLL_SIZE; static final Param SCROLL_TIME_SECONDS; static final Param DEFAULT_MAX_FEATURES; static final Param ARRAY_ENCODING; static final Param GRID_SIZE; static final Param GRID_THRESHOLD; static final Param[] PARAMS; }
@Test public void testCreateClientbuilder() { ElasticDataStoreFactory factory = new ElasticDataStoreFactory(); HttpHost[] hosts = new HttpHost[] { new HttpHost("localhost", 9200)}; assertNotNull(factory.createClientBuilder(hosts)); }