public class ClientAffinityStats
extends java.lang.Object
Single-partition procedures
For the given partition id, affinityWrites and affinityReads track transactions that the client believes it knows the master for, and for which it has an active network connection.
rrWrites and rrReads reflect transactions routed using round-robin, which can happen if the client has no active connection to the partition master.
Multi-partition procedures
Multipartitioned procedures are treated as single-partition procedures,
using the special partition id 16383
.
Other cases
A statistics entry with partition id -1
is used when:
Modifier and Type | Method and Description |
---|---|
protected java.lang.Object |
clone() |
static ClientAffinityStats |
diff(ClientAffinityStats newer,
ClientAffinityStats older)
Subtract one ClientAffinityStats instance from another to produce a third.
|
long |
getAffinityReads()
Get the number of reads that used affinity for this time period.
|
long |
getAffinityWrites()
Get the number of writes that used affinity for this time period.
|
long |
getRrReads()
Get the number of reads that used round-robin distribution
for this time period.
|
long |
getRrWrites()
Get the number of writes that used round-robin distribution
for this time period.
|
java.lang.String |
toString() |
public static ClientAffinityStats diff(ClientAffinityStats newer, ClientAffinityStats older)
newer
- More recent ClientAffinityStats instance.older
- Less recent ClientAffinityStats instance.protected java.lang.Object clone()
clone
in class java.lang.Object
public long getAffinityWrites()
public long getRrWrites()
public long getAffinityReads()
public long getRrReads()
public java.lang.String toString()
toString
in class java.lang.Object