Package vinzclortho :: Module core :: Class StoreHandler
[hide private]
[frames] | no frames]

Class StoreHandler

source code

object --+
         |
        StoreHandler

The request handler for requests to /store/somekey. Implements the state machines for quorum reads and writes. It also handles read-repair.

Instance Methods [hide private]
 
__init__(self, context)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
_encode(self, vc, value) source code
 
_decode(self, blob) source code
 
_vc_to_context(self, vc) source code
 
_context_to_vc(self, context) source code
 
_extract(self, request)
This returns a tuple with the following:
source code
 
_resolve(self) source code
 
_read_repair(self, result) source code
 
_read_quorum_acheived(self) source code
 
_write_quorum_acheived(self) source code
 
_all_received(self) source code
 
_respond_error(self) source code
 
_respond_ok(self) source code
 
_respond_get_ok(self) source code
 
_get_ok(self, replica, result) source code
 
_fail(self, replica, result) source code
 
do_GET(self, request) source code
 
_ok(self, replica, result) source code
 
do_PUT(self, request) source code
 
do_DELETE(self, request) source code
 
do_PUSH(self, request) source code

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

Class Variables [hide private]
  W = 2
  R = 2
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, context)
(Constructor)

source code 

x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Overrides: object.__init__
(inherited documentation)

_extract(self, request)

source code 

This returns a tuple with the following:

key vectorclock (or None if context not provided) client id (or address if not provided)