Reputation: 2778
I'm using Netty 3.5.4.Final.
How can one get the number of inbound and outbound transferred bytes within a single netty client/server instance? Current or average upload/download speed would be nice too.
Upvotes: 3
Views: 1332
Reputation: 5265
The package org.jboss.netty.handler.traffic
provides the classes you need. You could install a GlobalTrafficShapingHandler
(read and write limitation = 0) in your pipeline to measure throughput and the number of bytes that went through your pipeline.
Upvotes: 4