public abstract class AbstractNodeAddressResolver<Address> extends Object implements NodeAddressResolver<Address>
Constructor and Description |
---|
AbstractNodeAddressResolver(Cluster cluster) |
Modifier and Type | Method and Description |
---|---|
protected abstract Address |
getAddress(NodeInfo node) |
Address |
getNodeAddress(short id)
Returns the address of the master node with the given ID.
|
short |
getNodeId(Address address) |
protected void |
init() |
public AbstractNodeAddressResolver(Cluster cluster)
protected void init()
public short getNodeId(Address address)
getNodeId
in interface NodeAddressResolver<Address>
public Address getNodeAddress(short id)
NodeAddressResolver
getNodeAddress
in interface NodeAddressResolver<Address>