return this.resourceContext.getParentResourceComponent().getConnection();
}
public void getValues(MeasurementReport report, Set<MeasurementScheduleRequest> metrics) throws Exception {
DomainBlockStats stats = getConnection().getDomainBlockStats(
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)));
}
}