String pigScriptFilename = args[0];
ParsedPigScript parsedPigScript = pennyServer.parse(pigScriptFilename);
Map<String, ClassWithArgs> monitorClasses = new HashMap<String, ClassWithArgs>();
for (String alias : parsedPigScript.aliases()) {
if (parsedPigScript.operator(alias).equals("LOLoad")) {
monitorClasses.put(alias, new ClassWithArgs(TRMonitorAgent.class));
break; // only put MA at (first) load
}
}
parsedPigScript.trace(TRCoordinator.class, monitorClasses);