public interface AddressPicker
Address
that a Hazelcast cluster member binds its server socket to
and a (potentially different) address that Hazelcast will advertise to other cluster members and clients.Modifier and Type | Method and Description |
---|---|
Address |
getBindAddress(EndpointQualifier qualifier)
Returns a server socket listener address.
|
Address |
getPublicAddress(EndpointQualifier qualifier)
Returns a public address to be advertised to other cluster members and clients.
|
Map<EndpointQualifier,Address> |
getPublicAddressMap() |
ServerSocketChannel |
getServerSocketChannel(EndpointQualifier qualifier)
Returns a server channel.
|
Map<EndpointQualifier,ServerSocketChannel> |
getServerSocketChannels()
Returns all
ServerSocketChannel s of this member, mapped by corresponding EndpointQualifier |
void |
pickAddress()
Picks both server socket listener address and public address.
|
void pickAddress() throws Exception
Exception
- if failure happened while picking an address.Address getBindAddress(EndpointQualifier qualifier)
EndpointQualifier
s
may be the same or different, depending on the actual network configuration.Address
where the server socket was bound to or null
if called before.
pickAddress()
Address getPublicAddress(EndpointQualifier qualifier)
Address
another members can use to connect to this member or null
if called before
pickAddress()
Map<EndpointQualifier,Address> getPublicAddressMap()
ServerSocketChannel getServerSocketChannel(EndpointQualifier qualifier)
ServerSocketChannel
to be listened to by an acceptor or null
if called before
pickAddress()
Map<EndpointQualifier,ServerSocketChannel> getServerSocketChannels()
ServerSocketChannel
s of this member, mapped by corresponding EndpointQualifier
Map<EndpointQualifier, ServerSocketChannel>
of this member's server socket channelsCopyright © 2019 Hazelcast, Inc.. All rights reserved.