Package | Description |
---|---|
de.zib.scalaris |
This package contains means to communicate with the erlang scalaris ring from Java.
|
Modifier and Type | Class and 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 and Description |
---|---|
ConnectionPolicy |
ConnectionFactory.getConnectionPolicy()
Gets the current connection policy.
|
Modifier and Type | Method and Description |
---|---|
Connection |
ConnectionFactory.createConnection(ConnectionPolicy connectionPolicy)
Creates a connection to a scalaris erlang node specified by the given
parameters.
|
Connection |
ConnectionFactory.createConnection(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 and Description |
---|
Connection(OtpSelf self,
ConnectionPolicy connectionPolicy)
Creates a new connection between the a self node and one of the
remoteNodes, selected by the connectionPolicy.
|