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

Class VinzClortho

source code

object --+
         |
        VinzClortho

The main object that contains the HTTP server and handles gossiping of the consistent hash ring metadata.

Instance Methods [hide private]
 
__init__(self, addr, join, claim, partitions, logfile, persistent)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
_get_worker(self, num) source code
 
_get_replica(self, node, key) source code
 
check_shutdown(self) source code
 
get_claim(self) source code
 
balance(self) source code
 
update_claim(self, claim) source code
 
get_replicas(self, key) source code
 
get_storage(self, key) source code
 
local_get(self, key) source code
 
local_put(self, key, value) source code
 
local_multi_put(self, kvlist) source code
 
local_delete(self, key) source code
 
create_ring(self, join) source code
 
gossip_received(self, address, response) source code
 
update_meta(self, meta) source code
 
random_other_node_address(self) source code
 
schedule_gossip(self, timeout=None) source code
 
gossip_sent(self, result) source code
 
gossip_error(self, result) source code
 
get_gossip(self, a=None) source code
 
update_storage(self)
Creates storages (if necessary) for all claimed partitions
source code
 
_partial_handoff(self, node, partition, kvlist) source code
 
do_handoff(self, node, partitions, result) source code
 
_handoff_error(self, failure) source code
 
check_handoff(self)
Checks if any partitions that aren't claimed or replicated can be handed off
source code
 
run(self) source code

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

Class Variables [hide private]
  gossip_interval = 30.0
  N = 3
  num_partitions = 1024
  worker_pool_size = 10
Properties [hide private]
  ring

Inherited from object: __class__

Method Details [hide private]

__init__(self, addr, join, claim, partitions, logfile, persistent)
(Constructor)

source code 

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

Overrides: object.__init__
(inherited documentation)

Property Details [hide private]

ring

Get Method:
unreachable.ring(self)