-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve ConnectionStatistics to report per-protocol information #4184
Comments
This issue has been automatically marked as stale because it has been a full year without activity. It will be closed if no further activity occurs. Thank you for your contributions. |
@sbordet we now have However this would be a much cleaner solution to have all the information in |
This issue has been automatically marked as stale because it has been a |
Hello, |
@arsenalzp yes, it is still valid. |
I take it, if it's possible! |
Please do. |
I've just found per-protocol
However, protocol name is taken from class name of the connection instance:
So, I propose:
|
@arsenalzp I forgot that this was done already 🤦🏼♂️ I think we can just close this issue. I don't see much value adding However, the |
Yes, |
Currently,
ConnectionStatistics
listens to the "connection closed" event, and when it happens it retrieves the connection information from theConnection
object passed in the event.Would be great if this information could be split per-protocol.
This would involve:
Connection.getProtocol()
method so that it would be possible to know what protocol was that connection speakingConnectionStatistics
to store per-protocol information (as well as the totals)ConnectionStatisticsMBean
that displays the per-protocol data in a JMX friendly way. JMX'sCompositeType
represents a struct; in this case it can have these fields:[protocol, bytesIn, bytesOut, messagesIn, messagesOut]
. JMX'sCompositeData
is an instance of the struct with the actual values for those fields. JMX'sTabularData
is aMap
where you can map aString
to aCompositeData
(I think - this class is so obscure I completely forgotten it was so obscure). Point being that either via an array ofCompositeData
, or viaTabularData
we can return the connection information split by protocol.The text was updated successfully, but these errors were encountered: