log.debug("Obtaining default metric schedules for resource type " + resourceTypeId + "...");
List<MeasurementDefinition> definitions = definitionManager.findMeasurementDefinitionsByResourceType(
subject, resourceTypeId, null, null);
List<MeasurementScheduleComposite> composites = new ArrayList<MeasurementScheduleComposite>();
for (MeasurementDefinition definition : definitions) {
composites.add(new MeasurementScheduleComposite(definition, definition.isDefaultOn(), definition
.getDefaultInterval()));
}
measurementSchedules = new PageList<MeasurementScheduleComposite>(composites, definitions.size(),
pageControl);
//request.setAttribute(AttrConstants.MONITOR_ENABLED_ATTR, Boolean.FALSE);