Package org.jgroups.util
Class RTT
java.lang.Object
org.jgroups.util.RTT
Measures round-trip times (RTT) between nodes
- Since:
- 5.4, 5.3.8
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription_rtt(int num_reqs, int size, boolean exclude_self) booleanenabled()enabled(boolean f) voidhandleMessage(Message msg, TpHeader hdr) Called when a message (request or response) is receivedprotected voidhandleRequest(Address sender, TpHeader hdr) protected voidhandleResponse(Address sender, int index) voidintnumReqs()numReqs(int n) booleanoob()oob(boolean b) protected static Stringpercentiles(AverageMinMax avg, int num_reqs) protected static Stringprint(AverageMinMax avg, boolean details, TimeUnit unit, int num_reqs) rtt()rtt(int num_reqs, boolean details) Sends N requests to all members and computes RTTsrtt(int num_reqs, int size, boolean details, boolean exclude_self) Sends N requests to all members and computes RTTsintsize()size(int size) longtimeout()timeout(long t)
-
Field Details
-
transport
-
tp_id
protected short tp_id -
enabled
protected boolean enabled -
num_reqs
protected int num_reqs -
timeout
protected long timeout -
size
protected int size -
oob
protected boolean oob -
rtts
-
times
-
-
Constructor Details
-
RTT
public RTT()
-
-
Method Details
-
enabled
public boolean enabled() -
enabled
-
numReqs
public int numReqs() -
numReqs
-
timeout
public long timeout() -
timeout
-
size
public int size() -
size
-
oob
public boolean oob() -
oob
-
init
-
rtt
-
rtt
Sends N requests to all members and computes RTTs- Parameters:
num_reqs- The number of requests to be sent to all membersdetails- Whether to print details (e.g. min/max/percentiles)
-
rtt
Sends N requests to all members and computes RTTs- Parameters:
num_reqs- The number of requests to be sent to all memberssize- The number of bytes a request should havedetails- Whether to print details (e.g. min/max/percentiles)exclude_self- Whether to exclude the local node
-
_rtt
-
handleMessage
Called when a message (request or response) is received -
handleRequest
-
handleResponse
-
print
-
percentiles
-