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 . |