public class RoutingTable extends Object
Constructor and Description |
---|
RoutingTable()
Constructor, uses the default connection returned by
ConnectionFactory.createConnection() . |
RoutingTable(Connection conn)
Constructor, uses the given connection to an erlang node.
|
public RoutingTable() throws ConnectionException
ConnectionFactory.createConnection()
.ConnectionException
- if the connection failspublic RoutingTable(Connection conn)
conn
- connection to use for the Scalaris accesspublic int getReplicationFactor() throws ConnectionException, UnknownException
ConnectionException
- if the connection is not active or a communication error
occurs or an exit signal was received or the remote node
sends a message containing an invalid cookieUnknownException
- if any other error occurs