IAddressTranslatorTranslate Method |
Translates a Cassandra rpc_address to another address if necessary.
Namespace: CassandraAssembly: Cassandra (in Cassandra.dll) Version: 3.2.0
Syntax IPEndPoint Translate(
IPEndPoint address
)
Parameters
- address
- Type: System.NetIPEndPoint
the address of a node as returned by Cassandra. Note that if the rpc_address of
a node has been configured to 0.0.0.0 server side, then the provided address will
be the node listen_address, not 0.0.0.0. Also note that the port for
IPEndPoint will always be the one set at Cluster construction time
(9042 by default).
Return Value
Type:
IPEndPoint
the address the driver should actually use to connect to the node. If the return is
null, then address will be used by the driver (it is thus equivalent to
returing address directly).
See Also