[infinispan-issues] [JBoss JIRA] Commented: (ISPN-749) Infinispan servers should expose some stats over JMX
Galder Zamarreño (JIRA)
jira-events at lists.jboss.org
Tue Apr 26 02:36:37 EDT 2011
[ https://issues.jboss.org/browse/ISPN-749?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12597866#comment-12597866 ]
Galder Zamarreño commented on ISPN-749:
---------------------------------------
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
More information about the infinispan-issues
mailing list