@Override
public void getValues(MeasurementReport report, Set<MeasurementScheduleRequest> metrics) throws Exception {
for (MeasurementScheduleRequest request : metrics) {
if (request.getName().equals("ipAddress")) {
report.addData(new MeasurementDataTrait(request, componentConfiguration.getAddress().getHostAddress()));
} else if (request.getName().equals("hostName")) {
report.addData(new MeasurementDataTrait(request, componentConfiguration.getAddress()
.getCanonicalHostName()));
} else if (request.getName().equals("connectTime")) {
long start = System.currentTimeMillis();
if (portReachable()) {
report.addData(new MeasurementDataNumeric(request, (double) (System.currentTimeMillis() - start)));