| Package | Description |
|---|---|
| de.zib.scalaris |
This package contains means to communicate with the erlang scalaris ring from Java.
|
| Modifier and Type | Class | Description |
|---|---|---|
class |
DefaultConnectionPolicy |
Implements a
ConnectionPolicy by choosing nodes randomly. |
class |
FixedNodeConnectionPolicy |
Implements a
ConnectionPolicy which only supports a single node
and does not issue automatic re-tries. |
class |
RoundRobinConnectionPolicy |
Implements a
ConnectionPolicy by choosing nodes round-robin. |
| Modifier and Type | Method | Description |
|---|---|---|
ConnectionPolicy |
ConnectionFactory.getConnectionPolicy() |
Gets the current connection policy.
|
| Modifier and Type | Method | Description |
|---|---|---|
Connection |
ConnectionFactory.createConnection(ConnectionPolicy connectionPolicy) |
Creates a connection to a scalaris erlang node specified by the given
parameters.
|
Connection |
ConnectionFactory.createConnection(java.lang.String clientName,
boolean clientNameAppendUUID,
ConnectionPolicy connectionPolicy) |
Creates a connection to a scalaris erlang node specified by the given
parameters.
|
void |
ConnectionFactory.setConnectionPolicy(ConnectionPolicy connectionPolicy) |
Sets the connection policy to use for new connections.
|
| Constructor | Description |
|---|---|
Connection(com.ericsson.otp.erlang.OtpSelf self,
ConnectionPolicy connectionPolicy) |
Creates a new connection between the a self node and one of the
remoteNodes, selected by the connectionPolicy.
|