// started)
n.getLivenessManager().heartbeatChecks();
assertEquals(1, flumeMaster.getStatMan().getNodeStatuses().size());
FlumeShell sh = new FlumeShell();
sh.executeLine("connect localhost: "
+ FlumeConfiguration.DEFAULT_ADMIN_PORT);
// this will run for 10 seconds
sh
.executeLine("exec config foo 'synth(100)' '{delay(100) => accumulator(\"count\") }' ");
FlumeConfigData fcd = flumeMaster.getSpecMan().getConfig("foo");
assertEquals("{delay(100) => accumulator(\"count\") }", fcd.sinkConfig);
assertEquals("synth(100)", fcd.sourceConfig);
assertTrue(0 != fcd.timestamp);
sh.executeLine("waitForNodesActive 0 foo");
n.getLivenessManager().heartbeatChecks();
NodeStatus status = flumeMaster.getStatMan().getNodeStatuses()
.get(nodename);
NodeState active = NodeState.ACTIVE;
assertEquals(status.state, active);
sh.executeLine("waitForNodesDone 0 foo");
n.getLivenessManager().heartbeatChecks();
status = flumeMaster.getStatMan().getNodeStatuses().get(nodename);
NodeState idle = NodeState.IDLE;
assertEquals(status.state, idle);
AccumulatorSink cnt = (AccumulatorSink) ReportManager.get().getReportable(