public final class PathUtils
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static java.nio.file.Path |
composePath(java.io.File baseDirectory,
java.lang.String... children)
Append an arbitrary set of components to a base path.
|
static java.nio.file.Path |
composePath(java.nio.file.Path baseDirectory,
java.lang.String... children)
Append an arbitrary set of components to a base path.
|
static java.nio.file.Path |
jobAgentLogFilePath(java.io.File jobDirectory)
Compose the path to the agent log file for a job (after it has been relocated inside the job directory).
|
static java.nio.file.Path |
jobApplicationDirectoryPath(java.io.File jobDirectory,
java.lang.String appId)
Compose the path to an application directory inside a job directory.
|
static java.nio.file.Path |
jobApplicationsDirectoryPath(java.io.File jobDirectory)
Compose the path to the applications directory inside a job directory.
|
static java.nio.file.Path |
jobClusterDirectoryPath(java.io.File jobDirectory,
java.lang.String clusterId)
Compose the path to the cluster directory inside a job directory.
|
static java.nio.file.Path |
jobCommandDirectoryPath(java.io.File jobDirectory,
java.lang.String commandId)
Compose the path to the command directory inside a job directory.
|
static java.nio.file.Path |
jobEntityConfigPath(java.nio.file.Path entityDirectory)
Compose the path to the configurations directory for a given entity.
|
static java.nio.file.Path |
jobEntityDependenciesPath(java.nio.file.Path entityDirectory)
Compose the path to the dependencies directory for a given entity.
|
static java.nio.file.Path |
jobGenieDirectoryPath(java.io.File jobDirectory)
Compose the path to the genie directory inside a job directory.
|
static java.nio.file.Path |
jobGenieLogsDirectoryPath(java.io.File jobDirectory)
Compose the path to the genie logs directory inside a job directory.
|
static java.nio.file.Path |
jobStdErrPath(java.io.File jobDirectory)
Compose the path to the standard error log file for a job.
|
static java.nio.file.Path |
jobStdOutPath(java.io.File jobDirectory)
Compose the path to the standard output log file for a job.
|
public static java.nio.file.Path composePath(java.io.File baseDirectory, java.lang.String... children)
baseDirectory
- the base directorychildren
- path componentspublic static java.nio.file.Path composePath(java.nio.file.Path baseDirectory, java.lang.String... children)
baseDirectory
- the base directorychildren
- path componentspublic static java.nio.file.Path jobApplicationsDirectoryPath(java.io.File jobDirectory)
jobDirectory
- the job directorypublic static java.nio.file.Path jobApplicationDirectoryPath(java.io.File jobDirectory, java.lang.String appId)
jobDirectory
- the job directoryappId
- the application idpublic static java.nio.file.Path jobClusterDirectoryPath(java.io.File jobDirectory, java.lang.String clusterId)
jobDirectory
- the job directoryclusterId
- the cluster idpublic static java.nio.file.Path jobCommandDirectoryPath(java.io.File jobDirectory, java.lang.String commandId)
jobDirectory
- the job directorycommandId
- the command idpublic static java.nio.file.Path jobGenieDirectoryPath(java.io.File jobDirectory)
jobDirectory
- the job directorypublic static java.nio.file.Path jobGenieLogsDirectoryPath(java.io.File jobDirectory)
jobDirectory
- the job directorypublic static java.nio.file.Path jobEntityDependenciesPath(java.nio.file.Path entityDirectory)
entityDirectory
- the entity base directorypublic static java.nio.file.Path jobEntityConfigPath(java.nio.file.Path entityDirectory)
entityDirectory
- the entity base directorypublic static java.nio.file.Path jobStdOutPath(java.io.File jobDirectory)
jobDirectory
- the job directorypublic static java.nio.file.Path jobStdErrPath(java.io.File jobDirectory)
jobDirectory
- the job directorypublic static java.nio.file.Path jobAgentLogFilePath(java.io.File jobDirectory)
jobDirectory
- the job directory