Package org.apache.cassandra.net
Class EndpointMessagingVersions
- java.lang.Object
-
- org.apache.cassandra.net.EndpointMessagingVersions
-
public class EndpointMessagingVersions extends java.lang.ObjectMap of hosts to their known current messaging versions.
-
-
Constructor Summary
Constructors Constructor Description EndpointMessagingVersions()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intget(java.lang.String endpoint)intget(InetAddressAndPort endpoint)Returns the messaging-version as announced by the given node but capped to the min of the version as announced by the node andMessagingService.current_version.intgetRaw(InetAddressAndPort endpoint)Returns the messaging-version exactly as announced by the given endpoint.booleanknows(InetAddressAndPort endpoint)voidreset(InetAddressAndPort endpoint)intset(InetAddressAndPort endpoint, int version)
-
-
-
Method Detail
-
set
public int set(InetAddressAndPort endpoint, int version)
- Returns:
- the last version associated with address, or @param version if this is the first such version
-
reset
public void reset(InetAddressAndPort endpoint)
-
get
public int get(InetAddressAndPort endpoint)
Returns the messaging-version as announced by the given node but capped to the min of the version as announced by the node andMessagingService.current_version.
-
get
public int get(java.lang.String endpoint) throws java.net.UnknownHostException- Throws:
java.net.UnknownHostException
-
getRaw
public int getRaw(InetAddressAndPort endpoint)
Returns the messaging-version exactly as announced by the given endpoint.
-
knows
public boolean knows(InetAddressAndPort endpoint)
-
-