@Override
protected void runOneIteration() throws InterruptedException {
final String hostname = exec("uname -n").trim();
final String uname = exec("uname -a").trim();
final HostInfo hostInfo = HostInfo.newBuilder()
.setArchitecture(operatingSystemMXBean.getArch())
.setCpus(Runtime.getRuntime().availableProcessors())
.setHostname(hostname)
.setLoadAvg(operatingSystemMXBean.getSystemLoadAverage())
.setOsName(operatingSystemMXBean.getName())
.setOsVersion(operatingSystemMXBean.getVersion())
.setMemoryFreeBytes(operatingSystemMXBean.getFreePhysicalMemorySize())
.setMemoryTotalBytes(operatingSystemMXBean.getTotalPhysicalMemorySize())
.setSwapFreeBytes(operatingSystemMXBean.getFreeSwapSpaceSize())
.setSwapTotalBytes(operatingSystemMXBean.getTotalSwapSpaceSize())
.setUname(uname)
.setDockerVersion(dockerVersion())
.build();
nodeUpdater.update(hostInfo.toJsonBytes());
}