org.apache.cassandra.service
Class AntiEntropyService.Differencer

java.lang.Object
  extended by org.apache.cassandra.service.AntiEntropyService.Differencer
All Implemented Interfaces:
java.lang.Runnable
Enclosing class:
AntiEntropyService

public static class AntiEntropyService.Differencer
extends java.lang.Object
implements java.lang.Runnable

Runs on the node that initiated a request to compare two trees, and launch repairs for disagreeing ranges.


Field Summary
 java.util.List<Range> differences
           
 MerkleTree ltree
           
 AntiEntropyService.TreeRequest request
           
 MerkleTree rtree
           
 
Constructor Summary
AntiEntropyService.Differencer(AntiEntropyService.TreeRequest request, MerkleTree ltree, MerkleTree rtree)
           
 
Method Summary
 void run()
          Compares our trees, and triggers repairs for any ranges that mismatch.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

request

public final AntiEntropyService.TreeRequest request

ltree

public final MerkleTree ltree

rtree

public final MerkleTree rtree

differences

public java.util.List<Range> differences
Constructor Detail

AntiEntropyService.Differencer

public AntiEntropyService.Differencer(AntiEntropyService.TreeRequest request,
                                      MerkleTree ltree,
                                      MerkleTree rtree)
Method Detail

run

public void run()
Compares our trees, and triggers repairs for any ranges that mismatch.

Specified by:
run in interface java.lang.Runnable

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2011 The Apache Software Foundation