+ getApplicationName() + "', but no value is defined for the '"
+ RESPONSE_TIME_LOG_FILE_CONFIG_PROP + "' connection property.");
// TODO: Communicate this error back to the server for display in the GUI.
}
} else if (metricName.equals(CONTEXT_ROOT_METRIC)) {
MeasurementDataTrait trait = new MeasurementDataTrait(schedule, contextRoot);
report.addData(trait);
} else if (metricName.startsWith(SERVLET_PREFIX)) {
Double value = getServletMetric(metricName);
MeasurementDataNumeric metric = new MeasurementDataNumeric(schedule, value);
report.addData(metric);
} else if (metricName.startsWith(SESSION_PREFIX)) {
Double value = getSessionMetric(metricName);
MeasurementDataNumeric metric = new MeasurementDataNumeric(schedule, value);
report.addData(metric);
} else if (metricName.startsWith(VHOST_PREFIX)) {
if (metricName.equals("Vhost.name")) {
List<EmsBean> beans = getVHosts(contextRoot);
String value = "";
Iterator<EmsBean> iter = beans.iterator();
while (iter.hasNext()) {
EmsBean eBean = iter.next();
value += eBean.getBeanName().getKeyProperty("host");
if (iter.hasNext())
value += ",";
}
MeasurementDataTrait trait = new MeasurementDataTrait(schedule, value);
report.addData(trait);
}
} else {
remainingSchedules.add(schedule);
}