hazelcast/hazelcast — pull request #1175 by nscavell (2013-11-19 17:29:09+00:00)
Title: Vertx on Openshift

This PR is to get vertx, which uses hazelcast for clustering, to work on openshift.

There are basically two issues:
1. Hazelcast needs to bind to one address and advertise another. Note that both addresses can have a different ip & port.
2. Hazelcast tries to bind to public address for client socket when connecting to cluster member.

So for 1, I just allowed public address to specify the port as well, i.e. 10.1.1.1:35501

For 2, I added option to not bind on the client side as openshift does not allow to bind to public IP. Nor does openshift have a loopback / localaddress that hazelcast can find. However delegating to the OS seems to work. This seemed less obtrusive then passing around a local IP & port to bind to for the client.