File tree Expand file tree Collapse file tree 1 file changed +8
-6
lines changed
marklogic-client-api/src/main/java/com/marklogic/client/datamovement/impl Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change 1616package com .marklogic .client .datamovement .impl ;
1717
1818import com .marklogic .client .DatabaseClient ;
19+ import com .marklogic .client .DatabaseClientBuilder ;
1920import com .marklogic .client .DatabaseClientFactory ;
2021import com .marklogic .client .datamovement .*;
2122import com .marklogic .client .impl .DatabaseClientImpl ;
@@ -189,12 +190,13 @@ public DatabaseClient getHostClient(String hostName) {
189190 client = clientMap .get (hostName );
190191 if (client != null ) return client ;
191192
192- client = DatabaseClientFactory .newClient (
193- hostName ,
194- primaryClient .getPort (),
195- primaryClient .getDatabase (),
196- primaryClient .getSecurityContext ()
197- );
193+ client = new DatabaseClientBuilder ()
194+ .withHost (hostName )
195+ .withPort (primaryClient .getPort ())
196+ .withDatabase (primaryClient .getDatabase ())
197+ .withBasePath (primaryClient .getBasePath ())
198+ .withSecurityContext (primaryClient .getSecurityContext ())
199+ .build ();
198200 clientMap .put (hostName , client );
199201 }
200202 return client ;
You can’t perform that action at this time.
0 commit comments