this.nodeName = name;
this.ctx = ctx;
// Note: version and lastSeen aren't kept up-to-date on the logical node.
// The master fills them in when it receives a NodeStatus heartbeat.
state = new NodeStatus(NodeState.HELLO, 0, 0, NetUtils.localhost(),
FlumeNode.getInstance().getPhysicalNodeName());
// Set version to -1 so that all non-negative versions will be 'later'
lastGoodCfg = new FlumeConfigData(0, "null", "null", VERSION_INFIMUM,
VERSION_INFIMUM, FlumeConfiguration.get().getDefaultFlowName());
}