Package org.apache.cassandra.net
Class EndpointMessagingVersions
- java.lang.Object
-
- org.apache.cassandra.net.EndpointMessagingVersions
-
public class EndpointMessagingVersions extends java.lang.Object
Map of hosts to their known current messaging versions.
-
-
Field Summary
Fields Modifier and Type Field Description int
minClusterVersion
-
Constructor Summary
Constructors Constructor Description EndpointMessagingVersions()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
get(java.lang.String endpoint)
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
.int
getRaw(InetAddressAndPort endpoint)
Returns the messaging-version exactly as announced by the given endpoint.boolean
knows(InetAddressAndPort endpoint)
void
reset(InetAddressAndPort endpoint)
int
set(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)
-
-