mirror of
https://github.com/nosqlbench/nosqlbench.git
synced 2025-02-25 18:55:28 -06:00
use NBConfiguration in some types
This commit is contained in:
@@ -46,7 +46,7 @@ public class TCPClientActivity extends StdoutActivity {
|
||||
SocketFactory socketFactory = SocketFactory.getDefault();
|
||||
boolean sslEnabled = activityDef.getParams().getOptionalBoolean("ssl").orElse(false);
|
||||
if (sslEnabled) {
|
||||
socketFactory = SSLKsFactory.get().createSocketFactory(activityDef);
|
||||
socketFactory = SSLKsFactory.get().createSocketFactory(activityDef.getParams());
|
||||
}
|
||||
|
||||
String host = getActivityDef().getParams().getOptionalString("host").orElse("localhost");
|
||||
|
||||
@@ -56,7 +56,7 @@ public class TCPServerActivity extends StdoutActivity {
|
||||
queue = new LinkedBlockingQueue<>(capacity);
|
||||
|
||||
if (sslEnabled) {
|
||||
socketFactory = SSLKsFactory.get().createSSLServerSocketFactory(activityDef);
|
||||
socketFactory = SSLKsFactory.get().createSSLServerSocketFactory(activityDef.getParams());
|
||||
} else {
|
||||
socketFactory = ServerSocketFactory.getDefault();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user