Package org.jgroups.protocols
Class MsgStats
java.lang.Object
org.jgroups.protocols.MsgStats
Class which has all the stats about received/sent messages etc. (in TP)
- Since:
- 4.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final AverageMinMaxThe average number of messages in a receivedMessageBatchprotected booleanprotected final LongAdderprotected final LongAdderprotected final LongAdderprotected final LongAdderprotected final LongAdderprotected final LongAdderprotected final LongAdderprotected final LongAdderprotected final LongAdderprotected final LongAdderprotected final LongAdderprotected final LongAdder -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected MsgStatsenable(boolean b) booleanenabled()longlonglonglonglonglonglonglonglonglonglonglonglonglonglongincrNumBatchesSent(int n) received(MessageBatch batch) reset()toString()toString(boolean details)
-
Field Details
-
enabled
protected boolean enabled -
num_ucasts_sent
-
num_ucasts_received
-
num_mcasts_sent
-
num_mcasts_received
-
num_single_msgs_sent
-
num_single_msgs_received
-
num_batches_sent
-
num_batches_received
-
avg_batch_size
The average number of messages in a receivedMessageBatch -
num_mcast_bytes_sent
-
num_mcast_bytes_received
-
num_ucast_bytes_sent
-
num_ucast_bytes_received
-
-
Constructor Details
-
MsgStats
public MsgStats()
-
-
Method Details
-
enabled
public boolean enabled() -
enable
-
getNumMsgsSent
public long getNumMsgsSent() -
getNumMsgsReceived
public long getNumMsgsReceived() -
getAvgBatchSize
-
getNumBytesSent
public long getNumBytesSent() -
getNumBytesReceived
public long getNumBytesReceived() -
getNumUcastsSent
public long getNumUcastsSent() -
getNumMcastsSent
public long getNumMcastsSent() -
getNumUcastsReceived
public long getNumUcastsReceived() -
getNumMcastsReceived
public long getNumMcastsReceived() -
getNumSingleMsgsSent
public long getNumSingleMsgsSent() -
incrNumSingleMsgsSent
-
getNumBatchesSent
public long getNumBatchesSent() -
incrNumBatchesSent
-
incrNumBatchesSent
-
getNumBatchesReceived
public long getNumBatchesReceived() -
getNumUcastBytesSent
public long getNumUcastBytesSent() -
getNumMcastBytesSent
public long getNumMcastBytesSent() -
getNumUcastBytesReceived
public long getNumUcastBytesReceived() -
getNumMcastBytesReceived
public long getNumMcastBytesReceived() -
sent
-
sent
-
received
-
received
-
received
-
reset
-
toString
-
toString
-
add
-