for ( i = 0; i < fetchedTableSize; i++ ) {
if ( mappings[i] != -1 )
points[mappings[i]].setValue(rates[i]);
}
//return new DataCollectorResponse(points, (String[])newSets.toArray(), setCount);
return new DataCollectorResponse(points, (String[])newSets.toArray(new String[newSets.size()]), setCount);
} catch (Exception e) {
logger.warn("Exception collecting values: " + e);
e.printStackTrace();
points = new DataPoint[setCount];
for (int set = 0; set < setCount; set++ )
points[set] = new DataPoint(currentTime, 0);
//return new DataCollectorResponse(points, (String[])newSets.toArray(), setCount);
return new DataCollectorResponse(points, (String[])newSets.toArray(new String[newSets.size()]), setCount);
}
}