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

Add API to list running modules and their dependencies #28

Open
FroMage opened this issue Nov 13, 2012 · 7 comments
Open

Add API to list running modules and their dependencies #28

FroMage opened this issue Nov 13, 2012 · 7 comments
Milestone

Comments

@FroMage
Copy link
Member

FroMage commented Nov 13, 2012

We're thinking of adding a CRaSH (http://www.crashub.org/) module to be able to attach to a running Ceylon VM (JVM) and list the available modules and their dependencies, but we need to find a way to get that list from a JVM agent. JMX, static somewhere, whatever.

@alesj: any idea? Do we already have something? This might be reusable for JBoss Modules beyond just Ceylon too.

@alesj
Copy link
Member

alesj commented Nov 13, 2012

@dmlloyd does JBoss Modules already expose any MBeans?

@dmlloyd
Copy link

dmlloyd commented Nov 13, 2012

Yes, it does, under jboss.modules I believe.

@FroMage
Copy link
Member Author

FroMage commented Nov 13, 2012

@vietj: is that enough to get started?

@vietj
Copy link

vietj commented Nov 13, 2012

The static method : java.lang.management.ManagementFactory.getPlatformMBeanServer() should do the work .

@vietj
Copy link

vietj commented Nov 13, 2012

Beside that you can also access the java.lang.Instrument object in a command too that gives you access to all the Class known by the JVM (hence the classloader as well).

@FroMage
Copy link
Member Author

FroMage commented Mar 6, 2013

Moving to M6, this will be part of the metadata API anyways.

@FroMage
Copy link
Member Author

FroMage commented Mar 6, 2013

Not part, but required.

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

5 participants