Package | Description |
---|---|
de.zib.scalaris |
This package contains means to communicate with the erlang scalaris ring from Java.
|
de.zib.scalaris.jmx |
Modifier and Type | Method and Description |
---|---|
void |
Transaction.addDelOnList(OtpErlangString key,
OtpErlangList toAdd,
OtpErlangList toRemove) |
void |
AbstractTransaction.addDelOnList(OtpErlangString key,
OtpErlangList toAdd,
OtpErlangList toRemove)
Changes the list stored at the given key, i.e.
|
<T> void |
Transaction.addDelOnList(String key,
List<T> toAdd,
List<T> toRemove) |
<T> void |
AbstractTransaction.addDelOnList(String key,
List<T> toAdd,
List<T> toRemove)
Changes the list stored at the given key, i.e.
|
ScalarisVM.AddNodesResult |
ScalarisVM.addNodes(int number)
Adds the given number of nodes to the Scalaris VM of the current connection.
|
void |
Transaction.addOnNr(OtpErlangString key,
OtpErlangDouble toAdd) |
void |
AbstractTransaction.addOnNr(OtpErlangString key,
OtpErlangDouble toAdd)
Changes the number stored at the given key, i.e.
|
void |
Transaction.addOnNr(OtpErlangString key,
OtpErlangLong toAdd) |
void |
AbstractTransaction.addOnNr(OtpErlangString key,
OtpErlangLong toAdd)
Changes the number stored at the given key, i.e.
|
<T> void |
Transaction.addOnNr(String key,
T toAdd) |
<T> void |
AbstractTransaction.addOnNr(String key,
T toAdd)
Changes the number stored at the given key, i.e.
|
void |
Transaction.commit()
Commits the current transaction.
|
Connection |
ConnectionFactory.createConnection()
Creates a connection to a scalaris erlang node specified by the given
parameters.
|
Connection |
ConnectionFactory.createConnection(ConnectionPolicy connectionPolicy)
Creates a connection to a scalaris erlang node specified by the given
parameters.
|
Connection |
ConnectionFactory.createConnection(String clientName)
Creates a connection to a scalaris erlang node specified by the given
parameters.
|
Connection |
ConnectionFactory.createConnection(String clientName,
boolean clientNameAppendUUID)
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.
|
DeleteResult |
ReplicatedDHT.delete(OtpErlangString key)
Tries to delete all replicas of the given key in 2000ms.
|
DeleteResult |
ReplicatedDHT.delete(OtpErlangString key,
int timeout)
Tries to delete all replicas of the given key.
|
DeleteResult |
ReplicatedDHT.delete(String key)
Tries to delete all replicas of the given key in 2000ms.
|
DeleteResult |
ReplicatedDHT.delete(String key,
int timeout)
Tries to delete all replicas of the given key.
|
OtpErlangObject |
Connection.doRPC(String mod,
String fun,
OtpErlangList args)
Sends the given RPC and waits for a result.
|
OtpErlangObject |
Connection.doRPC(String mod,
String fun,
OtpErlangObject[] args)
Sends the given RPC and waits for a result.
|
Connection |
ConnectionPool.getConnection()
Gets a connection from the pool.
|
Connection |
ConnectionPool.getConnection(long timeout)
Tries to get a valid connection from the pool waiting at most
timeout milliseconds.
|
ScalarisVM.GetInfoResult |
ScalarisVM.getInfo()
Gets some information about the VM and Scalaris.
|
Monitor.GetNodeInfoResult |
Monitor.getNodeInfo()
Gets some information about the VM and Scalaris.
|
Monitor.GetNodePerformanceResult |
Monitor.getNodePerformance()
Gets some information about the VM and Scalaris.
|
List<ErlangValue> |
ScalarisVM.getNodes()
Gets the names of the nodes in the Scalaris VM of the current connection.
|
int |
ScalarisVM.getNumberOfNodes()
Gets the number of nodes in the Scalaris VM of the current connection.
|
List<String> |
ScalarisVM.getOtherVMs(int max)
Retrieves additional nodes from the Scalaris VM of the current
connection for use by
ConnectionFactory.addNode(String) . |
List<String> |
Scalaris.getRandomNodes(int max)
Retrieves random nodes from Scalaris for use by
ConnectionFactory.addNode(String) or ScalarisVM . |
int |
RoutingTable.getReplicationFactor()
Returns the replication factor used by the current routing table
implementation.
|
Monitor.GetServiceInfoResult |
Monitor.getServiceInfo()
Gets some information about the Scalaris ring.
|
Monitor.GetServicePerformanceResult |
Monitor.getServicePerformance()
Gets some information about the Scalaris ring.
|
String |
ScalarisVM.getVersion()
Gets the version of the Scalaris VM of the current connection.
|
boolean |
DeleteResult.hasDeletedAll(Connection conn)
Checks whether the delete operation has successfully deleted all replicas
(replicas which did not exist are counted as successfully deleted as
well).
|
boolean |
ScalarisVM.killNode(ErlangValue name)
Kills the given node inside the Scalaris VM of the current connection.
|
List<ErlangValue> |
ScalarisVM.killNodes(int number)
Kills the given number of nodes inside the Scalaris VM of the current
connection.
|
ScalarisVM.DeleteNodesByNameResult |
ScalarisVM.killNodes(List<ErlangValue> names)
Kills the given nodes inside the Scalaris VM of the current connection.
|
void |
ScalarisVM.killVM()
Kills the Scalaris VM of the current connection.
|
ErlangValue |
AbstractTransaction.read(OtpErlangString key)
Gets the value stored under the given
key . |
ErlangValue |
AbstractTransaction.read(String key)
Gets the value stored under the given
key . |
abstract ResL |
AbstractTransaction.req_list(ReqL req)
Executes all requests in
req . |
Transaction.ResultList |
Transaction.req_list(Transaction.RequestList req)
Executes all requests in
req . |
Transaction.ResultList |
Transaction.req_list(TransactionOperation op)
Executes the given operation.
|
TransactionSingleOp.ResultList |
TransactionSingleOp.req_list(TransactionSingleOp.RequestList req)
Executes all requests in
req and commits each one of them in
a single transaction. |
TransactionSingleOp.ResultList |
TransactionSingleOp.req_list(TransactionSingleOpOperation op)
Executes the given operation.
|
void |
Connection.sendRPC(String mod,
String fun,
OtpErlangList args)
Sends the given RPC and returns immediately.
|
void |
Connection.sendRPC(String mod,
String fun,
OtpErlangObject[] args)
Sends the given RPC and returns immediately.
|
boolean |
ScalarisVM.shutdownNode(ErlangValue name)
Shuts down the given node (graceful leave) inside the Scalaris VM of the
current connection.
|
List<ErlangValue> |
ScalarisVM.shutdownNodes(int number)
Shuts down the given number of nodes (graceful leave) inside the
Scalaris VM of the current connection.
|
ScalarisVM.DeleteNodesByNameResult |
ScalarisVM.shutdownNodesByName(List<ErlangValue> names)
Shuts down the given nodes (graceful leave) inside the Scalaris VM of the
current connection.
|
void |
ScalarisVM.shutdownVM()
Tells the Scalaris VM of the current connection to shut down gracefully.
|
void |
Transaction.testAndSet(OtpErlangString key,
OtpErlangObject oldValue,
OtpErlangObject newValue) |
void |
AbstractTransaction.testAndSet(OtpErlangString key,
OtpErlangObject oldValue,
OtpErlangObject newValue)
Stores the given key/new_value pair if the old value at
key is old_value (atomic test_and_set).
|
<OldT,NewT> |
Transaction.testAndSet(String key,
OldT oldValue,
NewT newValue) |
<OldT,NewT> |
AbstractTransaction.testAndSet(String key,
OldT oldValue,
NewT newValue)
Stores the given key/new_value pair if the old value at
key is old_value (atomic test_and_set).
|
void |
Transaction.write(OtpErlangString key,
OtpErlangObject value) |
void |
AbstractTransaction.write(OtpErlangString key,
OtpErlangObject value)
Stores the given
key /value pair. |
<T> void |
Transaction.write(String key,
T value) |
<T> void |
AbstractTransaction.write(String key,
T value)
Stores the given
key /value pair. |
Constructor and Description |
---|
AbstractTransaction()
Constructor, uses the default connection returned by
ConnectionFactory.createConnection() . |
Monitor(String node)
Creates a connection to the erlang VM of the given Scalaris node.
|
ReplicatedDHT()
Constructor, uses the default connection returned by
ConnectionFactory.createConnection() . |
RoutingTable()
Constructor, uses the default connection returned by
ConnectionFactory.createConnection() . |
Scalaris()
Constructor, uses the default connection returned by
ConnectionFactory.createConnection() . |
ScalarisVM(PeerNode node)
Creates a connection to the erlang VM of the given Scalaris node.
|
ScalarisVM(String node)
Creates a connection to the erlang VM of the given Scalaris node.
|
Transaction()
Constructor, uses the default connection returned by
ConnectionFactory.createConnection() . |
TransactionSingleOp()
Constructor, uses the default connection returned by
ConnectionFactory.createConnection() . |
Modifier and Type | Method and Description |
---|---|
Double |
MonitorNodeMBean.getCurLatencyAvg()
Gets the current, i.e.
|
Double |
MonitorServiceMBean.getCurLatencyAvg()
Gets the current, i.e.
|
Double |
MonitorNode.getCurLatencyAvg() |
Double |
MonitorService.getCurLatencyAvg() |
Double |
MonitorNodeMBean.getCurLatencyStddev()
Gets the current, i.e.
|
Double |
MonitorServiceMBean.getCurLatencyStddev()
Gets the current, i.e.
|
Double |
MonitorNode.getCurLatencyStddev() |
Double |
MonitorService.getCurLatencyStddev() |
int |
MonitorNodeMBean.getDhtNodes()
Gets the number of Scalaris nodes running in the VM the monitor is
connected to.
|
int |
MonitorNode.getDhtNodes() |
String |
MonitorNodeMBean.getErlangVersion()
Gets the version of Erlang running in the VM the monitor is connected
to.
|
String |
MonitorNode.getErlangVersion() |
Map<Long,Double> |
MonitorNodeMBean.getLatencyAvg()
Gets average latency values collected in the VM the monitor is connected
to.
|
Map<Long,Double> |
MonitorServiceMBean.getLatencyAvg()
Gets average latency values of the whole Scalaris ring from the VM the
monitor is connected to.
|
Map<Long,Double> |
MonitorNode.getLatencyAvg() |
Map<Long,Double> |
MonitorService.getLatencyAvg() |
Map<Long,Double> |
MonitorNodeMBean.getLatencyStddev()
Gets the standard deviation of the latency values collected in the VM the
monitor is connected to.
|
Map<Long,Double> |
MonitorServiceMBean.getLatencyStddev()
Gets the standard deviation of the latency values of the whole Scalaris
ring from the VM the monitor is connected to.
|
Map<Long,Double> |
MonitorNode.getLatencyStddev() |
Map<Long,Double> |
MonitorService.getLatencyStddev() |
Long |
MonitorServiceMBean.getNodes()
Gets the number of Scalaris nodes of the whole Scalaris ring from the VM
the monitor is connected to.
|
Long |
MonitorService.getNodes() |
String |
MonitorNodeMBean.getScalarisVersion()
Gets the version of Scalaris running in the VM the monitor is connected
to.
|
String |
MonitorNode.getScalarisVersion() |
Long |
MonitorServiceMBean.getTotalLoad()
Gets the total load of the whole Scalaris ring from the VM the monitor is
connected to.
|
Long |
MonitorService.getTotalLoad() |
Constructor and Description |
---|
MonitorNode(String node)
Creates a connection to the erlang VM of the given Scalaris node.
|
MonitorService(String node)
Creates a connection to the erlang VM of the given Scalaris node.
|