public class RpcStats
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
protected static class |
RpcStats.Result |
static class |
RpcStats.Type |
Modifier and Type | Field and Description |
---|---|
protected java.util.concurrent.atomic.AtomicInteger |
async_anycasts |
protected java.util.concurrent.atomic.AtomicInteger |
async_multicasts |
protected java.util.concurrent.atomic.AtomicInteger |
async_unicasts |
protected java.util.concurrent.ConcurrentMap<Address,RpcStats.Result> |
stats |
protected java.util.concurrent.atomic.AtomicInteger |
sync_anycasts |
protected java.util.concurrent.atomic.AtomicInteger |
sync_multicasts |
protected java.util.concurrent.atomic.AtomicInteger |
sync_unicasts |
Constructor and Description |
---|
RpcStats(boolean extended_stats) |
Modifier and Type | Method and Description |
---|---|
void |
add(RpcStats.Type type,
Address dest,
boolean sync,
long time) |
void |
addAnycast(boolean sync,
long time,
java.util.Collection<Address> dests) |
protected void |
addToResults(Address dest,
boolean sync,
long time) |
int |
anycasts(boolean sync) |
boolean |
extendedStats() |
RpcStats |
extendedStats(boolean f) |
int |
multicasts(boolean sync) |
java.lang.String |
printOrderByDest() |
void |
reset() |
void |
retainAll(java.util.Collection<Address> members) |
java.lang.String |
toString() |
int |
unicasts(boolean sync) |
protected void |
update(RpcStats.Type type,
boolean sync) |
protected final java.util.concurrent.atomic.AtomicInteger sync_unicasts
protected final java.util.concurrent.atomic.AtomicInteger async_unicasts
protected final java.util.concurrent.atomic.AtomicInteger sync_multicasts
protected final java.util.concurrent.atomic.AtomicInteger async_multicasts
protected final java.util.concurrent.atomic.AtomicInteger sync_anycasts
protected final java.util.concurrent.atomic.AtomicInteger async_anycasts
protected volatile java.util.concurrent.ConcurrentMap<Address,RpcStats.Result> stats
public int unicasts(boolean sync)
public int multicasts(boolean sync)
public int anycasts(boolean sync)
public boolean extendedStats()
public RpcStats extendedStats(boolean f)
public void reset()
public void add(RpcStats.Type type, Address dest, boolean sync, long time)
public void addAnycast(boolean sync, long time, java.util.Collection<Address> dests)
public void retainAll(java.util.Collection<Address> members)
public java.lang.String printOrderByDest()
public java.lang.String toString()
toString
in class java.lang.Object
protected void update(RpcStats.Type type, boolean sync)
protected void addToResults(Address dest, boolean sync, long time)
Copyright © 1998-2020 Red Hat. All Rights Reserved.