public class Paths
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ADMINS
Name of admins (that could participate to become leader) node.
|
static java.lang.String |
ALLOCATED
Name of the deployment modules node that are allocated to containers.
|
static java.lang.String |
CONTAINERS
Name of containers node.
|
static java.lang.String |
DEPLOYMENTS
Name of deployments node.
|
static java.lang.String |
JOB_DEPLOYMENTS
Name of job deployments node.
|
static java.lang.String |
JOBS
Name of jobs node.
|
static java.lang.String |
METADATA
Name of metadata node.
|
static java.lang.String |
MODULE_DEPLOYMENTS
Name of module deployments node.
|
static java.lang.String |
MODULES
Name of modules node.
|
static java.lang.String |
REQUESTED
Name of the module deployment requests node.
|
static java.lang.String |
STATUS
Name of status node.
|
static java.lang.String |
STREAM_DEPLOYMENTS
Name of stream deployments node.
|
static java.lang.String |
STREAMS
Name of streams node.
|
static java.lang.String |
TAPS
Name of taps node.
|
static java.lang.String |
XD_NAMESPACE
Namespace path (i.e.
|
Constructor and Description |
---|
Paths() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
build(java.lang.String... elements)
Return a string with the provided path elements separated by a slash
/ . |
static void |
ensurePath(org.apache.curator.framework.CuratorFramework client,
java.lang.String path)
Ensure the existence of the given path.
|
static java.lang.String |
stripPath(java.lang.String path)
Strip path information from a string.
|
public static final java.lang.String XD_NAMESPACE
public static final java.lang.String ADMINS
public static final java.lang.String CONTAINERS
public static final java.lang.String MODULES
public static final java.lang.String STREAMS
public static final java.lang.String JOBS
public static final java.lang.String TAPS
public static final java.lang.String DEPLOYMENTS
public static final java.lang.String ALLOCATED
public static final java.lang.String METADATA
ModuleMetadata
.public static final java.lang.String REQUESTED
public static final java.lang.String STATUS
public static final java.lang.String MODULE_DEPLOYMENTS
public static final java.lang.String STREAM_DEPLOYMENTS
public static final java.lang.String JOB_DEPLOYMENTS
public static java.lang.String stripPath(java.lang.String path)
/xd/path/location
, return location
.path
- path stringpublic static java.lang.String build(java.lang.String... elements)
/
.
The leading slash is created if required.elements
- path elementspublic static void ensurePath(org.apache.curator.framework.CuratorFramework client, java.lang.String path)
client
- curator clientpath
- path to create, if needed