Class HostDifferences
- java.lang.Object
-
- org.apache.cassandra.repair.asymmetric.HostDifferences
-
public class HostDifferences extends java.lang.Object
Tracks 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 void
add(InetAddressAndPort endpoint, java.util.Collection<Range<Token>> difference)
Adds a set of differences between the node this instance is tracking and endpointvoid
addSingleRange(InetAddressAndPort remoteNode, Range<Token> rangeToFetch)
java.util.NavigableSet<Range<Token>>
get(InetAddressAndPort differingHost)
boolean
hasDifferencesFor(InetAddressAndPort node2, Range<Token> range)
Does this instance have differences for range with node2?java.util.Set<InetAddressAndPort>
hosts()
java.lang.String
toString()
-
-
-
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:
toString
in classjava.lang.Object
-
-