voldemort.store.routed
Class ReadRepairer<K,V>

java.lang.Object
  extended by voldemort.store.routed.ReadRepairer<K,V>
Type Parameters:
K - The class of the key in the fetch
V - The class of the value in the fetch

public class ReadRepairer<K,V>
extends java.lang.Object

Repair out-dated reads, by sending an up-to-date value back to the offending clients This class computes the set of repairs that need to be made.


Constructor Summary
ReadRepairer()
           
 
Method Summary
 java.util.List<NodeValue<K,V>> getRepairs(java.util.List<NodeValue<K,V>> nodeValues)
          Compute the repair set from the given values and nodes
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReadRepairer

public ReadRepairer()
Method Detail

getRepairs

public java.util.List<NodeValue<K,V>> getRepairs(java.util.List<NodeValue<K,V>> nodeValues)
Compute the repair set from the given values and nodes

Parameters:
nodeValues - The value found on each node
Returns:
A set of repairs to perform


Jay Kreps, Roshan Sumbaly, Alex Feinberg, Bhupesh Bansal, Lei Gao, Chinmay Soman, Vinoth Chandar, Zhongjie Wu