NaN values for WebApplicationContextComponent metrics

Larry O'Leary loleary at redhat.com
Thu Nov 10 00:09:46 UTC 2011


In Double
org.rhq.plugins.jbossas5.WebApplicationContextComponent.getServletMetric(ManagementView managementView, String metricName) throws Exception[1] the metrics averageResponseTime[2], minimumResponseTime[3], and maximumResponseTime[4] are calculated. In some circumstances though, their value is set to Double.NaN. I am assuming this is because there is no data for this period? If this assumption is correct, wouldn't 0 have the same meaning?





[1]:
http://git.fedorahosted.org/git?p=rhq/rhq.git;a=blob;f=modules/plugins/jboss-as-5/src/main/java/org/rhq/plugins/jbossas5/WebApplicationContextComponent.java;h=0d96b2b0563e628b5f5306768a6eae3a4bf487a3;hb=refs/heads/master#l177
[2]:
http://git.fedorahosted.org/git?p=rhq/rhq.git;a=blob;f=modules/plugins/jboss-as-5/src/main/java/org/rhq/plugins/jbossas5/WebApplicationContextComponent.java;h=0d96b2b0563e628b5f5306768a6eae3a4bf487a3;hb=refs/heads/master#l222
[3]:
http://git.fedorahosted.org/git?p=rhq/rhq.git;a=blob;f=modules/plugins/jboss-as-5/src/main/java/org/rhq/plugins/jbossas5/WebApplicationContextComponent.java;h=0d96b2b0563e628b5f5306768a6eae3a4bf487a3;hb=refs/heads/master#l224
[4]:
http://git.fedorahosted.org/git?p=rhq/rhq.git;a=blob;f=modules/plugins/jboss-as-5/src/main/java/org/rhq/plugins/jbossas5/WebApplicationContextComponent.java;h=0d96b2b0563e628b5f5306768a6eae3a4bf487a3;hb=refs/heads/master#l226


-- 
Larry O'Leary
https://plus.google.com/u/0/112645929986009801513



More information about the rhq-devel mailing list