return this.resourceContext.getParentResourceComponent().getConnection();
}
public void getValues(MeasurementReport report, Set<MeasurementScheduleRequest> metrics) throws Exception {
DomainInterfaceStats stats = getConnection().getDomainInterfaceStats(
this.resourceContext.getParentResourceComponent().getDomainName(), this.resourceContext.getResourceKey());
for (MeasurementScheduleRequest request : metrics) {
Field f = stats.getClass().getField(request.getName());
report.addData(new MeasurementDataNumeric(request, (double) f.getLong(stats)));
}
}