this.measurementManager.rescheduleLateCollections(requests);
return report;
}
Integer resourceId = next.getResourceId();
ResourceContainer container = im.getResourceContainer(resourceId);
if (container.getResourceComponentState() != ResourceContainer.ResourceComponentState.STARTED
|| container.getAvailability() == null
|| container.getAvailability().getAvailabilityType() == AvailabilityType.DOWN) {
// Don't collect metrics for resources that are down
if (log.isDebugEnabled()) {
log.debug("Measurements not collected for inactive resource component: "
+ container.getResource());
}
} else {
MeasurementFacet measurementComponent = ComponentUtil
.getComponent(resourceId, MeasurementFacet.class, FacetLockType.READ,
MeasurementManager.FACET_METHOD_TIMEOUT, true, true, true);
if (log.isDebugEnabled()) {
scheduleHistory.addRequests(requests);
}
getValues(measurementComponent, report, requests, container.getResource());
}
this.measurementManager.reschedule(requests);
report.incrementCollectionTime(System.currentTimeMillis() - start);