-
1. Re: Wildfly extension - expose data under subsystem
ctomc Nov 30, 2015 1:32 PM (in response to ansur)You want to expose some configuration of the subsystem or "runtime metrics" of the deployment itself?
I would guess the later.
First thing you need to do is register "deployment model" under which you define resource(and subresources) and what attributes it has.
than you need just to implement the read attribute handlers for each attribute.
Usually such read attribute handler will lookup the (msc) service which holds the information you want to expose.
This service you can add as part of DUP you are already writing.
then in cli you will be able to access this data under
/deployment=name-of-deployment-archive.ext/subsystem=name-of-your-subsystem/<resoruce-you-defined-above>
and example of such deployment resource would be servlets info exposed via undertow subsystem see
wildfly/DeploymentServletDefinition.java at master · wildfly/wildfly · GitHub some ideas.
hope this is what you are looking for, otherwise do explain what exactly you want to do.
-
2. Re: Wildfly extension - expose data under subsystem
ansur Dec 1, 2015 10:04 AM (in response to ctomc)Hi Tomaz,
indeed, I'm more talking about runtime-metrics.
What I was missing is that I can indeed install a service through a DUP, as shown in the UndertowDeploymentProcessor. That processor should get me on my way to implement what I need.
Thanks!