Commit 0e03e516 authored by Grégory Wisniewski's avatar Grégory Wisniewski

Add accessors for number of replicas and partitions in PartitionTable.


git-svn-id: https://svn.erp5.org/repos/neo/branches/prototype3@654 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent 53b35627
......@@ -62,6 +62,12 @@ class PartitionTable(object):
self.partition_list = [[] for x in xrange(num_partitions)]
self.count_dict = {}
def getPartitions(self):
return self.num_partitions
def getReplicas(self):
return self.num_replicas
def clear(self):
"""Forget an existing partition table."""
self.num_filled_rows = 0
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment