Skip to content

feat(#1828): Expose NetworkConnector URI and local URI in JMX MBean#1829

Open
jbonofre wants to merge 1 commit intoapache:mainfrom
jbonofre:AMQ-network-connector-mbean-uri
Open

feat(#1828): Expose NetworkConnector URI and local URI in JMX MBean#1829
jbonofre wants to merge 1 commit intoapache:mainfrom
jbonofre:AMQ-network-connector-mbean-uri

Conversation

@jbonofre
Copy link
Copy Markdown
Member

Add getUri() and getLocalUri() attributes to NetworkConnectorViewMBean so that the network connector URI is visible via JMX. Add abstract getUri() to NetworkConnector base class and implement it in MulticastNetworkConnector.

@jbonofre jbonofre linked an issue Mar 25, 2026 that may be closed by this pull request
@jbonofre jbonofre changed the title feat(#1228): Expose NetworkConnector URI and local URI in JMX MBean feat(#1828): Expose NetworkConnector URI and local URI in JMX MBean Mar 25, 2026
@jbonofre jbonofre force-pushed the AMQ-network-connector-mbean-uri branch from 4eef489 to 1b25c26 Compare March 25, 2026 12:49

@Override
public URI getUri() {
return remoteURI;
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I know it's redundant with getRemoteURI() here, but it's for consistency.

I'm fine to use getRemoveURI() everywhere if it makes more sense.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's a bit weird indeed. Maybe add a small comment for us, so no one goes in one month from now and says, it's duplicate I'll remove it

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it'd make more sense to make MulticastNetworkConnector have a 'getUri()' method instead.

I'm pretty against doing any field name mapping at the admin view b/c it is miscommunicating to users

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK, I was hesitating. Thanks for your inputs, let's use getRemoteURI() then.


@Override
public URI getUri() {
return remoteURI;
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's a bit weird indeed. Maybe add a small comment for us, so no one goes in one month from now and says, it's duplicate I'll remove it

…Bean

Add getUri() and getLocalUri() attributes to NetworkConnectorViewMBean
so that the network connector URI is visible via JMX. Add abstract
getUri() to NetworkConnector base class and implement it in
MulticastNetworkConnector.
@jbonofre jbonofre force-pushed the AMQ-network-connector-mbean-uri branch from 1b25c26 to 957eabf Compare March 26, 2026 05:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

NetworkConnectorMBean should provide configured URI

3 participants