(int)(resourceCalculatorPlugin.
getAvailablePhysicalMemorySize() / 1024D / 1024);
free.setMemoryMB(availableMemoryMB);
free.setDiskGB((int)(getDiskSpace(true) / 1024D / 1024 / 1024));
// TT puts it's MR specific host:port tuple here
ClusterNodeInfo node = new ClusterNodeInfo
(this.getName(), clusterManagerCallbackServerAddr, total);
node.setFree(free);
node.setResourceInfos(resourceInfos);
LOG.debug("ClusterManager heartbeat: " + node.toString());
if (client == null) {
initializeClusterManagerClient();
}
client.nodeHeartbeat(node);
clusterManagerConnectRetries = 0;