AgentInfoReporter(RuntimeMXBean runtimeMxBean, NodeUpdaterFactory nodeUpdaterFactory, String host, int interval, TimeUnit timeUnit, CountDownLatch latch) { super(latch); this.runtimeMxBean = requireNonNull(runtimeMxBean); this.nodeUpdater = nodeUpdaterFactory.create(Paths.statusHostAgentInfo(host)); this.interval = interval; this.timeUnit = requireNonNull(timeUnit); }
private AgentInfo getAgentInfo(final ZooKeeperClient client, final String host) { return tryGetEntity(client, Paths.statusHostAgentInfo(host), AGENT_INFO_TYPE, "agent info"); }
.rule(Paths.statusHostJobs(PATH_COMPONENT_WILDCARD), CREATE | DELETE, agentId) .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)
AgentInfoReporter(final Builder builder) { this.runtimeMXBean = checkNotNull(builder.runtimeMXBean); this.nodeUpdater = builder.nodeUpdaterFactory.create(Paths.statusHostAgentInfo(builder.host)); this.interval = builder.interval; this.timeUnit = checkNotNull(builder.timeUnit); }
private AgentInfo getAgentInfo(final ZooKeeperClient client, final String host) { return tryGetEntity(client, Paths.statusHostAgentInfo(host), AGENT_INFO_TYPE, "agent info"); }