public class RoutingTable
extends java.lang.Object
| Constructor | Description |
|---|---|
RoutingTable() |
Constructor, uses the default connection returned by
ConnectionFactory.createConnection(). |
RoutingTable(Connection conn) |
Constructor, uses the given connection to an erlang node.
|
| Modifier and Type | Method | Description |
|---|---|---|
int |
getReplicationFactor() |
Returns the replication factor used by the current routing table
implementation.
|
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