return AvailabilityType.DOWN;
}
}
public void getValues(MeasurementReport report, Set<MeasurementScheduleRequest> requests) throws Exception {
DirUsage dirUsage = getDirectoryInfo();
if (dirUsage==null)
return;
for (MeasurementScheduleRequest request : requests) {
Double value = null;
if (request.getName().equals("usage")) {
value = Double.valueOf(dirUsage.getDiskUsage());
} else if (request.getName().equals("files")) {
value = Double.valueOf(dirUsage.getFiles());
} else if (request.getName().equals("total")) {
value = Double.valueOf(dirUsage.getTotal());
}
if (value!=null) {
MeasurementDataNumeric result = new MeasurementDataNumeric(request, value);
report.addData(result);