Skip to content
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

operation param naming and instance objectname delegation and other stuff #14

Open
jdillon opened this issue Oct 8, 2012 · 1 comment

Comments

@jdillon
Copy link

jdillon commented Oct 8, 2012

jmxutils is pretty nice :-)

I did find that it was missing the ability to specify name/description for operation names (or for that matter the mbeans themselves). This is minor IMO for mbeans themselves, though nice to have, but for operations is often hard to figure out what the parameters are for with the default names, so I think its important to allow that metadata to get expressed.

Also, any idea how difficult it would be to allow an object instance to inform the library what objectname it should use, or to perhaps even delegate the mbean class which should provide jmx access for it? And really I'm taking more about the guice integration (which is really great btw), but it looks like it binds the mapping to strings very early, before an instance is ever created.

Also, any ideas on how to expose javabean values as openmbean datatypes similar to how MXBeans do? I see there is @flatten and @nested which is nice, but it would be nicer if it would just translate on the fly to openmbean data formats like MXBeans do.

Anyways, just some thoughts... if you have any ideas I'd like to hear them. I might get inspired to go hack this stuff in.

@martint
Copy link
Owner

martint commented Oct 13, 2012

I did find that it was missing the ability to specify name/description for operation names (or for that matter the mbeans themselves). This is minor IMO for mbeans themselves, though nice to have, but for operations is often hard to figure out what the parameters are for with the default names, so I think its important to allow that metadata to get expressed.

Agreed. It shouldn't be hard to add those.

Also, any idea how difficult it would be to allow an object instance to inform the library what objectname it should use, or to perhaps even delegate the mbean class which should provide jmx access for it? And really I'm taking more about the guice integration (which is really great btw), but it looks like it binds the mapping to strings very early, before an instance is ever created.

That should also be straightforward. There's an experimental API I've been working on (it's already in master) to export maps and sets of objects, where the name of each object is determined dynamically via a user-provided callback. It should be easy to extend to export single objects, too.

Also, any ideas on how to expose javabean values as openmbean datatypes similar to how MXBeans do? I see there is @flatten and @nested which is nice, but it would be nicer if it would just translate on the fly to openmbean data formats like MXBeans do.

That will probably require a lot more surgery. I need to look into it...

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

No branches or pull requests

2 participants