[jboss-as7-dev] Attributes, metrics, additional descriptive information for such
Heiko W.Rupp
hrupp at redhat.com
Wed Feb 2 03:17:22 EST 2011
Am 02.02.2011 um 04:03 schrieb Brian Stansberry:
> We were going with a "include-runtime" flag on the read-resource
> operation, with a default of "false". Do you see a case where people
> want to query all the metrics for a resource but not the configuration
> values? I'd think the norm would be just show me the configuration data,
> with runtime information retrieved individually.
I guess this now depends on the definition of "individually".
If a resource has e.g. 20 metrics, I would like to be able to
retrieve them all in one batch and not call the domain controller
20 times.
RHQ will much more often query metrics (runtime values) than
configuration values.
I am also not sure how much sense it makes to pile up a request for the
metrics individually to be returned in one go
Request.getResource(xyz).getMetric("a"
.getMetric("b")
....
.getMetirc("x")
This is good when someone only wants one or two metrics, but not for 20 of them.
Here some
Request.getResource(xyz).getMetrics();
call would be probably better.
Heiko
--
Reg. Adresse: Red Hat GmbH, Otto-Hahn-Strasse 20, 85609 Dornach bei München
Handelsregister: Amtsgericht München HRB 153243
Geschaeftsführer: Brendan Lane, Charlie Peters, Michael Cunningham, Charles Cachera
More information about the jboss-as7-dev
mailing list