Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Netty3.5.4.Finalを使用しています。
単一のnettyクライアント/サーバーインスタンス内で転送されたインバウンドおよびアウトバウンドのバイト数を取得するにはどうすればよいですか?現在または平均のアップロード/ダウンロード速度もいいでしょう。
パッケージorg.jboss.netty.handler.trafficはあなたが必要とするクラスを提供します。パイプラインに(読み取りと書き込みの制限= 0)をインストールして、GlobalTrafficShapingHandlerスループットとパイプラインを通過したバイト数を測定できます。
org.jboss.netty.handler.traffic
GlobalTrafficShapingHandler