Bug 741691 - missing some units in xsd
Summary: missing some units in xsd
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: RHQ Project
Classification: Other
Component: Plugins
Version: 4.1
Hardware: Unspecified
OS: Unspecified
medium
medium vote
Target Milestone: ---
: ---
Assignee: John Mazzitelli
QA Contact: Mike Foley
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-09-27 15:29 UTC by John Mazzitelli
Modified: 2012-02-07 19:18 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-02-07 19:18:52 UTC


Attachments (Terms of Use)
plugin used in verification (13.43 KB, application/java-archive)
2011-09-29 15:21 UTC, Mike Foley
no flags Details
plugin descriptor used in verification (1.51 KB, text/xml)
2011-09-29 15:22 UTC, Mike Foley
no flags Details

Description John Mazzitelli 2011-09-27 15:29:43 UTC
We support many unit types in the code -  MeasurementUnits.

However, for some reason, our rhq-configuration.xsd is missing some - so a plugin cannot use what the code actually supports.

need to add to rhq-configuration.xsd to match what we support

Comment 1 John Mazzitelli 2011-09-27 15:36:48 UTC
will add the following units to the descriptor schema since they are supported by MeasurementUnits: petabytes, epoch_seconds, jiffys, microseconds

Comment 2 John Mazzitelli 2011-09-27 15:39:35 UTC
master commit c14cbc4 adds the four missing units. for QA to test, you can write a very simple plugin wiht just a descriptor that uses the four new units and makes sure you can add values to them with the appropriate unit specifiers (see MeasurementUnits for those - e.g. us=microseconds)

Comment 4 Mike Foley 2011-09-29 15:21:18 UTC
attaching a handwritten plugin that contains a plugin descriptor that uses all these new units of measure.

Comment 5 Mike Foley 2011-09-29 15:21:51 UTC
Created attachment 525592 [details]
plugin used in verification

Comment 6 Mike Foley 2011-09-29 15:22:25 UTC
Created attachment 525593 [details]
plugin descriptor used in verification

Comment 7 Mike Foley 2011-09-29 15:25:29 UTC
verified by writing a custom plugin (attached) that utilized all new units of measure.  uploaded this plugin to RHQ, plugins update, and then created an alert using these new units of measure.

Comment 8 Mike Foley 2012-02-07 19:18:52 UTC
changing status of VERIFIED BZs for JON 2.4.2 and JON 3.0 to CLOSED/CURRENTRELEASE


Note You need to log in before you can comment on or make changes to this bug.