public PathFactory(final String base, final String... parts) { final String joined = join(base, parts); this.base = joined.startsWith("/") ? joined : "/" + joined; PathUtils.validatePath(base); }
public static String historyJobs() { return HISTORY_JOBS.path(); } }
private String getZkEventPath(final String eventsPath, final long timestamp) { return new PathFactory(eventsPath).path(String.valueOf(timestamp)); }
/** * This path stores a list of hosts that have been removed from a deployment group. * Hosts are removed from this list when we are confident the deployment group's job is no longer * deployed to them. */ public static String statusDeploymentGroupRemovedHosts(final String name) { return STATUS_DEPLOYMENT_GROUPS.path(name, REMOVED_HOSTS); }
public String path(final String... parts) { final String path = join(base, parts); PathUtils.validatePath(path); return path; }
public static String configHosts() { return CONFIG_HOSTS.path(); }
public PathFactory(final String base, final String... parts) { final String joined = join(base, parts); this.base = joined.startsWith("/") ? joined : "/" + joined; PathUtils.validatePath(base); }
public static String configHostJobs(final String host) { return CONFIG_HOSTS.path(host, JOBS); }
public String path(final String... parts) { final String path = join(base, parts); PathUtils.validatePath(path); return path; }
public static String historyJobHostEvents(final String jobIdString, final String host) { return HISTORY_JOBS.path(jobIdString, HOSTS, host, EVENTS); }
public static String configHost(final String host) { return CONFIG_HOSTS.path(host); }
public static String statusHostLabels(final String host) { return STATUS_HOSTS.path(host, LABELS); }
public static String statusDeploymentGroupTasks() { return STATUS_DEPLOYMENT_GROUP_TASKS.path(); }
public static String configJobRefs() { return CONFIG_JOBREFS.path(); }
public static String configDeploymentGroup(final String name) { return CONFIG_DEPLOYMENT_GROUPS.path(name); }
public static String configHostPorts(final String host) { return CONFIG_HOSTS.path(host, PORTS); }
public static String statusHostJobs(final String host) { return STATUS_HOSTS.path(host, JOBS); }
public static String statusHostJob(final String host, final String jobIdString) { return STATUS_HOSTS.path(host, JOBS, jobIdString); }
public static String statusHostEnvVars(final String host) { return STATUS_HOSTS.path(host, ENVIRONMENT); }
public static String statusDeploymentGroups() { return STATUS_DEPLOYMENT_GROUPS.path(); }