this.timeUnit = checkNotNull(builder.timeUnit);
}
@Override
protected void runOneIteration() {
final AgentInfo agentInfo = AgentInfo.newBuilder()
.setName(runtimeMXBean.getName())
.setVmName(runtimeMXBean.getVmName())
.setVmVendor(runtimeMXBean.getVmVendor())
.setVmVersion(runtimeMXBean.getVmVersion())
.setSpecName(runtimeMXBean.getSpecName())
.setSpecVendor(runtimeMXBean.getSpecVendor())
.setSpecVersion(runtimeMXBean.getSpecVersion())
.setInputArguments(runtimeMXBean.getInputArguments())
.setUptime(runtimeMXBean.getUptime())
.setStartTime(runtimeMXBean.getStartTime())
.setVersion(Version.POM_VERSION)
.build();
nodeUpdater.update(agentInfo.toJsonBytes());
}