Repository navigation
Remove Legacy Metrics - #3357
Conversation
artembilan
left a comment
There was a problem hiding this comment.
Not too much to say since PR is huge.
Probably I'll merge it as is after your clarifications to my questions.
Mostly I trust you.
Thanks
There was a problem hiding this comment.
Hm. Looks like we don't need a @ManagedResource.
What do I miss?
Thanks
There was a problem hiding this comment.
We export all components; they don't need @ManagedResource; they do, however, need @IntegrationManagedResource to prevent the normal MBE from exporting.
That said, pause/resume are not showing up - investigating...
There was a problem hiding this comment.
I'm not sure this one has to be manageable - it is just an inner one
There was a problem hiding this comment.
Probably we need to raise an issue to not forget this TODO...
There was a problem hiding this comment.
I wonder if we really should apply our Integration management logic to not integration components.
This one sounds more like regular Spring bean, so what is the point to manage it.
I might be not reached JMX yet, but just in case I won't forget in this number of file to review...
Thanks for understanding
There was a problem hiding this comment.
I think we don't need this if. The logic below covers everything we needed.
And having a MessageHandler as a proxy won't give us a positive match with this if anyway.
There was a problem hiding this comment.
Yeah - I went through a lot of iterations with this; I thought I had cleaned all these up. Good catch.
- Simplify MBeans - instead of wrapping to expose lifecycle methods, implement `ManageableLifecycle`. Register an additional MBean for polled endpoints to control the lifecycle.
- Move `QueueChannel` `@ManagedAttribute`s to `QueueChannelOperations` - Make all `AbstractEndpoints` `IntegrationManagedResource`s and remove `ManagedEndpoint` to allow exposure of any `@Managed*` methods (including those on `Pausable`) - Revert to `Lifecycle` for classes that are not related to endpoints - Remove legacy metrics from docs
b939ba1 to
33b32ac
Compare
|
Rebased and re-pushed with polishing. |
implement
ManageableLifecycle. Register an additional MBean forpolled endpoints to control the lifecycle.