Constructor
new AddressTranslator()
Methods
translate(address, port, callback)
rpc_address
to another address if necessary.
Parameters:
Name | Type | Description |
---|---|---|
address |
String | the address of a node as returned by Cassandra.
Note that if the |
port |
Number | The port number, as specified in the protocolOptions at Client instance creation (9042 by default). |
callback |
function | Callback to invoke with endPoint as first parameter.
The endPoint is an string composed of the IP address and the port number in the format ipAddress:port . |