Skip to content

Commit

Permalink
NO-JIRA Adding a test playing with network disconnects and failover
Browse files Browse the repository at this point in the history
  • Loading branch information
clebertsuconic committed Sep 5, 2018
1 parent 0d9f5eb commit 05ce7c6
Show file tree
Hide file tree
Showing 4 changed files with 946 additions and 2 deletions.
Expand Up @@ -1219,7 +1219,7 @@ protected static final Map<String, Object> generateParams(final int node, final
return params;
}

protected static final TransportConfiguration getNettyAcceptorTransportConfiguration(final boolean live) {
protected TransportConfiguration getNettyAcceptorTransportConfiguration(final boolean live) {
if (live) {
return new TransportConfiguration(NETTY_ACCEPTOR_FACTORY);
}
Expand All @@ -1231,14 +1231,15 @@ protected static final TransportConfiguration getNettyAcceptorTransportConfigura
return new TransportConfiguration(NETTY_ACCEPTOR_FACTORY, server1Params);
}

protected static final TransportConfiguration getNettyConnectorTransportConfiguration(final boolean live) {
protected TransportConfiguration getNettyConnectorTransportConfiguration(final boolean live) {
if (live) {
return new TransportConfiguration(NETTY_CONNECTOR_FACTORY);
}

Map<String, Object> server1Params = new HashMap<>();

server1Params.put(org.apache.activemq.artemis.core.remoting.impl.netty.TransportConstants.PORT_PROP_NAME, org.apache.activemq.artemis.core.remoting.impl.netty.TransportConstants.DEFAULT_PORT + 1);
server1Params.put(org.apache.activemq.artemis.core.remoting.impl.netty.TransportConstants.NETTY_CONNECT_TIMEOUT, 1000);
return new TransportConfiguration(NETTY_CONNECTOR_FACTORY, server1Params);
}

Expand Down

0 comments on commit 05ce7c6

Please sign in to comment.