HostInfoReporter(OperatingSystemMXBean operatingSystemMxBean, NodeUpdaterFactory nodeUpdaterFactory, String host, DockerClient dockerClient, DockerHost dockerHost, int interval, TimeUnit timeUnit, CountDownLatch latch) { super(latch); this.operatingSystemMxBean = requireNonNull(operatingSystemMxBean, "operatingSystemMxBean"); final String hostInfoPath = Paths.statusHostInfo(requireNonNull(host, "host")); this.nodeUpdater = nodeUpdaterFactory.create(hostInfoPath); this.dockerClient = requireNonNull(dockerClient, "dockerClient"); this.dockerHost = requireNonNull(dockerHost, "dockerHost"); this.interval = interval; this.timeUnit = requireNonNull(timeUnit, "timeUnit"); }
private HostInfo getHostInfo(final ZooKeeperClient client, final String host) { return tryGetEntity(client, Paths.statusHostInfo(host), HOST_INFO_TYPE, "host info"); }
throws KeeperException, HostNotFoundException { final String idPath = Paths.configHostId(name); final String hostInfoPath = Paths.statusHostInfo(name);
.rule(Paths.statusHostJob(PATH_COMPONENT_WILDCARD, PATH_COMPONENT_WILDCARD), WRITE, agentId) .rule(Paths.statusHostAgentInfo(PATH_COMPONENT_WILDCARD), WRITE, agentId) .rule(Paths.statusHostInfo(PATH_COMPONENT_WILDCARD), WRITE, agentId) .rule(Paths.statusHostLabels(PATH_COMPONENT_WILDCARD), WRITE, agentId) .rule(Paths.statusHostEnvVars(PATH_COMPONENT_WILDCARD), WRITE, agentId)
HostInfoReporter(final Builder builder) { this.operatingSystemMXBean = checkNotNull(builder.operatingSystemMXBean, "operatingSystemMXBean"); this.nodeUpdater = builder.nodeUpdaterFactory.create( Paths.statusHostInfo(checkNotNull(builder.host, "host"))); this.dockerClient = checkNotNull(builder.dockerClient, "dockerClient"); this.dockerHost = checkNotNull(builder.dockerHost, "dockerHost"); this.interval = builder.interval; this.timeUnit = checkNotNull(builder.timeUnit, "timeUnit"); }
private HostInfo getHostInfo(final ZooKeeperClient client, final String host) { return tryGetEntity(client, Paths.statusHostInfo(host), HOST_INFO_TYPE, "host info"); }