Class DifferenceHolder
- java.lang.Object
-
- org.apache.cassandra.repair.asymmetric.DifferenceHolder
-
public class DifferenceHolder extends java.lang.ObjectJust holds all differences between the hosts involved in a repair
-
-
Constructor Summary
Constructors Constructor Description DifferenceHolder(java.util.List<TreeResponse> trees)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description HostDifferencesget(InetAddressAndPort hostWithDifference)booleanhasDifferenceBetween(InetAddressAndPort node1, InetAddressAndPort node2, Range<Token> range)java.util.Set<InetAddressAndPort>keyHosts()differences only holds one 'side' of the difference - if A and B mismatch, only A will be a key in the mapjava.lang.StringtoString()
-
-
-
Constructor Detail
-
DifferenceHolder
public DifferenceHolder(java.util.List<TreeResponse> trees)
-
-
Method Detail
-
keyHosts
public java.util.Set<InetAddressAndPort> keyHosts()
differences only holds one 'side' of the difference - if A and B mismatch, only A will be a key in the map
-
get
public HostDifferences get(InetAddressAndPort hostWithDifference)
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
hasDifferenceBetween
public boolean hasDifferenceBetween(InetAddressAndPort node1, InetAddressAndPort node2, Range<Token> range)
-
-