return agent;
}
LogicalNode setupColl(long port, String name, String acc) throws IOException,
RuntimeException, FlumeSpecException {
Context ctx = new LogicalNodeContext(new ReportTestingContext(), "phys",
name);
LogicalNode coll = new LogicalNode(ctx, name);
FlumeConfigData fcd2 = new FlumeConfigData(0, "rpcSource(" + port + ")",
"accumulator(\"" + acc + "\")", 1, 1, "flow");
coll.loadConfig(fcd2);