Class HostDifferences
- java.lang.Object
-
- org.apache.cassandra.repair.asymmetric.HostDifferences
-
public class HostDifferences extends java.lang.ObjectTracks the differences for a single host
-
-
Constructor Summary
Constructors Constructor Description HostDifferences()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(InetAddressAndPort endpoint, java.util.Collection<Range<Token>> difference)Adds a set of differences between the node this instance is tracking and endpointvoidaddSingleRange(InetAddressAndPort remoteNode, Range<Token> rangeToFetch)java.util.NavigableSet<Range<Token>>get(InetAddressAndPort differingHost)booleanhasDifferencesFor(InetAddressAndPort node2, Range<Token> range)Does this instance have differences for range with node2?java.util.Set<InetAddressAndPort>hosts()java.lang.StringtoString()
-
-
-
Method Detail
-
add
public void add(InetAddressAndPort endpoint, java.util.Collection<Range<Token>> difference)
Adds a set of differences between the node this instance is tracking and endpoint
-
addSingleRange
public void addSingleRange(InetAddressAndPort remoteNode, Range<Token> rangeToFetch)
-
hasDifferencesFor
public boolean hasDifferencesFor(InetAddressAndPort node2, Range<Token> range)
Does this instance have differences for range with node2?
-
hosts
public java.util.Set<InetAddressAndPort> hosts()
-
get
public java.util.NavigableSet<Range<Token>> get(InetAddressAndPort differingHost)
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-