Module scalaris :: Class ScalarisVM
[hide private]
[frames] | no frames]

Class ScalarisVM

source code


Provides methods to interact with a specific Scalaris (Erlang) VM.

Nested Classes [hide private]
  GetInfoResult
Instance Methods [hide private]
 
__init__(self, conn=None)
Create a new object using the given connection.
source code
 
getVersion(self)
Gets the version of the Scalaris VM of the current connection.
source code
 
getInfo(self)
Gets some information about the VM and Scalaris.
source code
 
getNumberOfNodes(self)
Gets the number of nodes in the Scalaris VM of the current connection.
source code
 
getNodes(self)
Gets the names of the nodes in the Scalaris VM of the current connection.
source code
 
addNodes(self, number)
Adds Scalaris nodes to the Scalaris VM of the current connection.
source code
 
shutdownNode(self, name)
Shuts down the given node (graceful leave) in the Scalaris VM of the current connection.
source code
 
killNode(self, name)
Kills the given node in the Scalaris VM of the current connection.
source code
 
shutdownNodes(self, number)
Shuts down the given number of nodes (graceful leave) in the Scalaris VM of the current connection.
source code
 
killNodes(self, number)
Kills the given number of nodes in the Scalaris VM of the current connection.
source code
 
shutdownNodesByName(self, names)
Shuts down the given nodes (graceful leave) in the Scalaris VM of the current connection.
source code
 
killNodesByName(self, names)
Kills the given nodes in the Scalaris VM of the current connection.
source code
 
getOtherVMs(self, maxVMs)
Retrieves additional nodes from the Scalaris VM of the current connection for use as URLs in JSONConnection.
source code
 
shutdownVM(self)
Tells the Scalaris VM of the current connection to shut down gracefully.
source code
 
killVM(self)
Kills the Scalaris VM of the current connection.
source code
 
nop(self, value)
No operation (may be used for measuring the JSON overhead).
source code
 
close_connection(self)
Close the connection to scalaris (it will automatically be re-opened on the next request).
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, conn=None)
(Constructor)

source code 

Create a new object using the given connection.

Overrides: object.__init__