Package fish.payara.nucleus.hazelcast
Class MemberAddressPicker
- java.lang.Object
-
- fish.payara.nucleus.hazelcast.MemberAddressPicker
-
- All Implemented Interfaces:
com.hazelcast.spi.MemberAddressProvider
public class MemberAddressPicker extends Object implements com.hazelcast.spi.MemberAddressProvider
This class tries to work out which interface to choose as the address of the member broadcast within Hazelcast This method picks an interface using the following rules: If there is only one interface that is not loopback, choose that If there is an interfaces element use that For the DAS, if there is a bind address specified use that If none of those choose the one that isn't the default docker one For a standalone if the DAS specifies a Bind or Public address, choose the interface on the same net or subnet If none of those choose the one that is not the default docker interface For micro if domain discovery mode, choose the network on the same subnet If tcpip mode choose the interface which matches a subnet in the tcpip list If none of those choose the first interface that is not the default docker one- Since:
- 5.0.181
- Author:
- Steve Millidge (Payara Foundation)
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InetSocketAddress
getBindAddress()
InetSocketAddress
getBindAddress(com.hazelcast.instance.EndpointQualifier endpointQualifier)
InetSocketAddress
getPublicAddress()
InetSocketAddress
getPublicAddress(com.hazelcast.instance.EndpointQualifier endpointQualifier)
-
-
-
Method Detail
-
getBindAddress
public InetSocketAddress getBindAddress(com.hazelcast.instance.EndpointQualifier endpointQualifier)
- Specified by:
getBindAddress
in interfacecom.hazelcast.spi.MemberAddressProvider
-
getPublicAddress
public InetSocketAddress getPublicAddress(com.hazelcast.instance.EndpointQualifier endpointQualifier)
- Specified by:
getPublicAddress
in interfacecom.hazelcast.spi.MemberAddressProvider
-
getBindAddress
public InetSocketAddress getBindAddress()
- Specified by:
getBindAddress
in interfacecom.hazelcast.spi.MemberAddressProvider
-
getPublicAddress
public InetSocketAddress getPublicAddress()
- Specified by:
getPublicAddress
in interfacecom.hazelcast.spi.MemberAddressProvider
-
-