@@ -94,7 +94,7 @@ public void testProxyStrategyWillOpenExpectedNumberOfConnectionsToAddress() {
94
94
int numOfConnections = randomIntBetween (4 , 8 );
95
95
try (RemoteConnectionManager remoteConnectionManager = new RemoteConnectionManager (clusterAlias , connectionManager );
96
96
ProxyConnectionStrategy strategy = new ProxyConnectionStrategy (clusterAlias , localService , remoteConnectionManager ,
97
- numOfConnections , address1 .toString ())) {
97
+ Settings . EMPTY , numOfConnections , address1 .toString ())) {
98
98
assertFalse (connectionManager .getAllConnectedNodes ().stream ().anyMatch (n -> n .getAddress ().equals (address1 )));
99
99
100
100
PlainActionFuture <Void > connectFuture = PlainActionFuture .newFuture ();
@@ -126,7 +126,8 @@ public void testProxyStrategyWillOpenNewConnectionsOnDisconnect() throws Excepti
126
126
127
127
try (RemoteConnectionManager remoteConnectionManager = new RemoteConnectionManager (clusterAlias , connectionManager );
128
128
ProxyConnectionStrategy strategy = new ProxyConnectionStrategy (clusterAlias , localService , remoteConnectionManager ,
129
- numOfConnections , address1 .toString (), alternatingResolver (address1 , address2 , useAddress1 ), null )) {
129
+ Settings .EMPTY , numOfConnections , address1 .toString (),
130
+ alternatingResolver (address1 , address2 , useAddress1 ), null )) {
130
131
assertFalse (connectionManager .getAllConnectedNodes ().stream ().anyMatch (n -> n .getAddress ().equals (address1 )));
131
132
assertFalse (connectionManager .getAllConnectedNodes ().stream ().anyMatch (n -> n .getAddress ().equals (address2 )));
132
133
@@ -173,7 +174,7 @@ public void testConnectFailsWithIncompatibleNodes() {
173
174
int numOfConnections = randomIntBetween (4 , 8 );
174
175
try (RemoteConnectionManager remoteConnectionManager = new RemoteConnectionManager (clusterAlias , connectionManager );
175
176
ProxyConnectionStrategy strategy = new ProxyConnectionStrategy (clusterAlias , localService , remoteConnectionManager ,
176
- numOfConnections , address1 .toString ())) {
177
+ Settings . EMPTY , numOfConnections , address1 .toString ())) {
177
178
178
179
PlainActionFuture <Void > connectFuture = PlainActionFuture .newFuture ();
179
180
strategy .connect (connectFuture );
@@ -206,7 +207,8 @@ public void testClusterNameValidationPreventConnectingToDifferentClusters() thro
206
207
207
208
try (RemoteConnectionManager remoteConnectionManager = new RemoteConnectionManager (clusterAlias , connectionManager );
208
209
ProxyConnectionStrategy strategy = new ProxyConnectionStrategy (clusterAlias , localService , remoteConnectionManager ,
209
- numOfConnections , address1 .toString (), alternatingResolver (address1 , address2 , useAddress1 ), null )) {
210
+ Settings .EMPTY , numOfConnections , address1 .toString (),
211
+ alternatingResolver (address1 , address2 , useAddress1 ), null )) {
210
212
assertFalse (connectionManager .getAllConnectedNodes ().stream ().anyMatch (n -> n .getAddress ().equals (address1 )));
211
213
assertFalse (connectionManager .getAllConnectedNodes ().stream ().anyMatch (n -> n .getAddress ().equals (address2 )));
212
214
@@ -255,7 +257,7 @@ public void testProxyStrategyWillResolveAddressesEachConnect() throws Exception
255
257
int numOfConnections = randomIntBetween (4 , 8 );
256
258
try (RemoteConnectionManager remoteConnectionManager = new RemoteConnectionManager (clusterAlias , connectionManager );
257
259
ProxyConnectionStrategy strategy = new ProxyConnectionStrategy (clusterAlias , localService , remoteConnectionManager ,
258
- numOfConnections , address .toString (), addressSupplier , null )) {
260
+ Settings . EMPTY , numOfConnections , address .toString (), addressSupplier , null )) {
259
261
PlainActionFuture <Void > connectFuture = PlainActionFuture .newFuture ();
260
262
strategy .connect (connectFuture );
261
263
connectFuture .actionGet ();
@@ -280,7 +282,7 @@ public void testProxyStrategyWillNeedToBeRebuiltIfNumOfSocketsOrAddressesOrServe
280
282
int numOfConnections = randomIntBetween (4 , 8 );
281
283
try (RemoteConnectionManager remoteConnectionManager = new RemoteConnectionManager (clusterAlias , connectionManager );
282
284
ProxyConnectionStrategy strategy = new ProxyConnectionStrategy (clusterAlias , localService , remoteConnectionManager ,
283
- numOfConnections , remoteAddress .toString (), "server-name" )) {
285
+ Settings . EMPTY , numOfConnections , remoteAddress .toString (), "server-name" )) {
284
286
PlainActionFuture <Void > connectFuture = PlainActionFuture .newFuture ();
285
287
strategy .connect (connectFuture );
286
288
connectFuture .actionGet ();
@@ -373,7 +375,7 @@ public void testServerNameAttributes() {
373
375
int numOfConnections = randomIntBetween (4 , 8 );
374
376
try (RemoteConnectionManager remoteConnectionManager = new RemoteConnectionManager (clusterAlias , connectionManager );
375
377
ProxyConnectionStrategy strategy = new ProxyConnectionStrategy (clusterAlias , localService , remoteConnectionManager ,
376
- numOfConnections , address , "localhost" )) {
378
+ Settings . EMPTY , numOfConnections , address , "localhost" )) {
377
379
assertFalse (connectionManager .getAllConnectedNodes ().stream ().anyMatch (n -> n .getAddress ().equals (address1 )));
378
380
379
381
PlainActionFuture <Void > connectFuture = PlainActionFuture .newFuture ();
0 commit comments