Map<String, ClassWithArgs> monitorClasses = new HashMap<String, ClassWithArgs>();
for (String alias : parsedPigScript.aliases()) {
int lowerBound = (lowerBounds.containsKey(alias))? lowerBounds.get(alias) : 0;
monitorClasses.put(alias, new ClassWithArgs(CIMonitorAgent.class, lowerBound, skipSize));
}
latestTuples = (Map<PhysicalLocation, Tuple>) parsedPigScript.trace(CICoordinator.class, monitorClasses);
// update lower bounds
lowerBounds.clear();
for (Entry<PhysicalLocation, Tuple> entry : latestTuples.entrySet()) {
String alias = entry.getKey().logId();