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

Class _JSONReqList

source code


Generic request list.

Instance Methods [hide private]
 
__init__(self, other=None)
Create a new object using a JSON connection.
source code
 
add_read(self, key)
Adds a read operation to the request list.
source code
 
add_write(self, key, value)
Adds a write operation to the request list.
source code
 
add_add_del_on_list(self, key, to_add, to_remove)
Adds a add_del_on_list operation to the request list.
source code
 
add_add_on_nr(self, key, to_add)
Adds a add_on_nr operation to the request list.
source code
 
add_test_and_set(self, key, old_value, new_value)
Adds a test_and_set operation to the request list.
source code
 
add_commit(self)
Adds a commit operation to the request list.
source code
 
get_requests(self)
Gets the collected requests.
source code
 
is_commit(self)
Returns whether the transactions contains a commit or not.
source code
 
is_empty(self)
Checks whether the request list is empty.
source code
 
size(self)
Gets the number of requests in the list.
source code
 
extend(self, other)
Adds all requests of the other request list to the end of this list.
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, other=None)
(Constructor)

source code 

Create a new object using a JSON connection.

Overrides: object.__init__