|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.netty.channel.SimpleChannelHandler
net.tomp2p.connection.PerformanceFilter
@ChannelHandler.Sharable public class PerformanceFilter
Measures the number of outgoing and incoming packets. This is used to test the performance. The logger is set to debug and will only output if the msg/s is larger than 1. To enable the performance, set in tomp2plog.properties "net.tomp2p.connection.PerformanceFilter.level = FINE"
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.jboss.netty.channel.ChannelHandler |
|---|
org.jboss.netty.channel.ChannelHandler.Sharable |
| Constructor Summary | |
|---|---|
PerformanceFilter()
|
|
| Method Summary | |
|---|---|
void |
messageReceived(org.jboss.netty.channel.ChannelHandlerContext ctx,
org.jboss.netty.channel.MessageEvent e)
|
void |
writeRequested(org.jboss.netty.channel.ChannelHandlerContext ctx,
org.jboss.netty.channel.MessageEvent e)
|
| Methods inherited from class org.jboss.netty.channel.SimpleChannelHandler |
|---|
bindRequested, channelBound, channelClosed, channelConnected, channelDisconnected, channelInterestChanged, channelOpen, channelUnbound, childChannelClosed, childChannelOpen, closeRequested, connectRequested, disconnectRequested, exceptionCaught, handleDownstream, handleUpstream, setInterestOpsRequested, unbindRequested, writeComplete |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PerformanceFilter()
| Method Detail |
|---|
public void messageReceived(org.jboss.netty.channel.ChannelHandlerContext ctx,
org.jboss.netty.channel.MessageEvent e)
messageReceived in class org.jboss.netty.channel.SimpleChannelHandler
public void writeRequested(org.jboss.netty.channel.ChannelHandlerContext ctx,
org.jboss.netty.channel.MessageEvent e)
throws Exception
writeRequested in class org.jboss.netty.channel.SimpleChannelHandlerException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||