Search in sources :

Example 1 with MeanMetric

use of org.elasticsearch.common.metrics.MeanMetric in project crate by crate.

the class TcpTransport method getStats.

@Override
public final TransportStats getStats() {
    final MeanMetric writeBytesMetric = statsTracker.getWriteBytes();
    final long bytesWritten = statsTracker.getBytesWritten();
    final long messagesSent = statsTracker.getMessagesSent();
    final long messagesReceived = statsTracker.getMessagesReceived();
    final long bytesRead = statsTracker.getBytesRead();
    return new TransportStats(acceptedChannels.size(), messagesReceived, bytesRead, messagesSent, bytesWritten);
}
Also used : MeanMetric(org.elasticsearch.common.metrics.MeanMetric)

Aggregations

MeanMetric (org.elasticsearch.common.metrics.MeanMetric)1