public class IdentityTranslater extends Object implements AddressTranslater
AddressTranslater
used by the driver that do no
translation.Constructor and Description |
---|
IdentityTranslater() |
Modifier and Type | Method and Description |
---|---|
InetSocketAddress |
translate(InetSocketAddress address)
Translates a Cassandra
rpc_address to another address if necessary. |
public InetSocketAddress translate(InetSocketAddress address)
rpc_address
to another address if necessary.
This method is the identity function, it always return the address passed in argument, doing no translation.
translate
in interface AddressTranslater
address
- the address of a node as returned by Cassandra.address
unmodified.Copyright © 2012–2015. All rights reserved.