On 06/09/2011 05:27 AM, BARTH Michael wrote:
some trouble installing the JMX plugin whith a defaultInterval lower
than 30000 (a custom-jmx-plugin-1.0-SNAPSHOT.jar.fixme is left in the
update directory when clicking on "scan for updates" in RHQ's
Administration tab).
As per the documentation/annotation found in the XML Schema for plugin
descriptors (rhq-plugin.xsd):
http://git.fedorahosted.org/git/?p=rhq/rhq.git;a=blob;f=modules/core/clie...
default collection intervals must be 30s or higher. See line 201-214 of
rhq-plugin.xsd where it defines the defaultInterval schema:
201 <xs:attribute name="defaultInterval">
202 <xs:annotation>
203 <xs:documentation>
204 The default collection interval, in milliseconds. The
metric is not necessarily
205 enabled - see the defaultOn attribute for that. The
minimum allowed value is
206 30000 (30 seconds).
207 </xs:documentation>
208 </xs:annotation>
209 <xs:simpleType>
210 <xs:restriction base="xs:unsignedLong">
211 <xs:minInclusive value="30000"/>
212 </xs:restriction>
213 </xs:simpleType>
214 </xs:attribute>
So, had you been using an XML Editor that validates your plugin
descriptor against this XSD schema, it should have flagged that as an
invalid value.
We shouldn't silently ignore this though - if we aren't logging an error
message at plugin deployment time, we should be. It would be a problem
if we do not log an error to let you know why it failed.
A JMX plugin with the following metrics inside deploys:
<metric property="ServiceTime"
displayName="Service time"
defaultOn="true"
displayType="summary"
defaultInterval="30000"
description="Time between the first and request and the last response."/>
<metric property="ServiceTime"
displayName="Service time"
defaultOn="true"
displayType="summary"
defaultInterval="40000"
description="Time between the first and request and the last response."/>
A JMX plugin with the following metrics inside does not deploy:
<metric property="ServiceTime"
displayName="Service time"
defaultOn="true"
displayType="summary"
defaultInterval="20000"
description="Time between the first and request and the last response."/>
Any help on this would be highly appreciated.
Thank, Michael
_______________________________________________
rhq-users mailing list
rhq-users(a)lists.fedorahosted.org
https://fedorahosted.org/mailman/listinfo/rhq-users