private boolean checkHostUp(final ZooKeeperClient client, final String host) { try { final Stat stat = client.exists(Paths.statusHostUp(host)); return stat != null; } catch (KeeperException e) { throw new HeliosRuntimeException("getting host " + host + " up status failed", e); } }
final String upPath = Paths.statusHostUp(name); log.debug("Creating up node: {}", upPath); client.ensurePath(upPath, true);
.rule(Paths.statusHostLabels(PATH_COMPONENT_WILDCARD), WRITE, agentId) .rule(Paths.statusHostEnvVars(PATH_COMPONENT_WILDCARD), WRITE, agentId) .rule(Paths.statusHostUp(PATH_COMPONENT_WILDCARD), WRITE, agentId)
private boolean checkHostUp(final ZooKeeperClient client, final String host) { try { final Stat stat = client.exists(Paths.statusHostUp(host)); return stat != null; } catch (KeeperException e) { throw new HeliosRuntimeException("getting host " + host + " up status failed", e); } }
final String upPath = Paths.statusHostUp(name); log.debug("Creating up node: {}", upPath); upNode = client.persistentEphemeralNode(upPath, EPHEMERAL, EMPTY_BYTES);