[
https://issues.jboss.org/browse/ISPN-749?page=com.atlassian.jira.plugin.s...
]
Galder Zamarreño edited comment on ISPN-749 at 4/26/11 2:44 AM:
----------------------------------------------------------------
Overall, the total amount of data read by the server, you could override handleUpstream()
or messageReceived(), and count the number of bytes in the received buffer:
{code}@Override
public void messageReceived(ctx, evt) {
receivedBytes += ((ChannelBuffer) evt.getMessage()).readableBytes();
super.messageReceived(ctx, evt);
}{code}
For the writing part, WriteCompletionEvent and writeComplete() in decoder could do the
job.
was (Author: galder.zamarreno):
Overall, the total amount of data read by the server, you could override
handleUpstream() or messageReceived(), and count the number of bytes in the received
buffer:
@Override
public void messageReceived(ctx, evt) {
receivedBytes += ((ChannelBuffer)
evt.getMessage()).readableBytes();
super.messageReceived(ctx, evt);
}
For the writing part, WriteCompletionEvent and writeComplete() in decoder could do the
job.
Infinispan servers should expose some stats over JMX
----------------------------------------------------
Key: ISPN-749
URL:
https://issues.jboss.org/browse/ISPN-749
Project: Infinispan
Issue Type: Feature Request
Components: Cache Server, JMX, reporting and management
Reporter: Galder Zamarreño
Assignee: Galder Zamarreño
Fix For: 5.0.0.CR1, 5.0.0.FINAL
Infinispan servers should expose some stats of their own, such as: amount of data read,
amount of data written back to clients...etc.
--
This message is automatically generated by JIRA.
For more information on JIRA, see:
http://www.atlassian.com/software/jira