public class DelegatingAddressPicker extends Object implements AddressPicker
MemberAddressProvider
.Constructor and Description |
---|
DelegatingAddressPicker(MemberAddressProvider memberAddressProvider,
NetworkConfig networkConfig,
ILogger logger) |
Modifier and Type | Method and Description |
---|---|
Address |
getBindAddress()
Returns a server socket listener address.
|
Address |
getPublicAddress()
Returns a public address to be advertised to other cluster members and clients.
|
ServerSocketChannel |
getServerSocketChannel()
Returns a server channel.
|
void |
pickAddress()
Picks both server socket listener address and public address.
|
public DelegatingAddressPicker(MemberAddressProvider memberAddressProvider, NetworkConfig networkConfig, ILogger logger)
public void pickAddress() throws Exception
AddressPicker
pickAddress
in interface AddressPicker
Exception
public Address getBindAddress()
AddressPicker
getBindAddress
in interface AddressPicker
Address
where the server socket was bound to or null
if called before.
AddressPicker.pickAddress()
public Address getPublicAddress()
AddressPicker
getPublicAddress
in interface AddressPicker
Address
another members can use to connect to this member or null
if called before
AddressPicker.pickAddress()
public ServerSocketChannel getServerSocketChannel()
AddressPicker
getServerSocketChannel
in interface AddressPicker
ServerSocketChannel
to be listened to by an acceptor or null
if called before
AddressPicker.pickAddress()
Copyright © 2017 Hazelcast, Inc.. All Rights Reserved.