Package com.netflix.genie.agent.utils
Class PathUtils
java.lang.Object
com.netflix.genie.agent.utils.PathUtils
Utilities to compose filesystem paths.
- Since:
- 4.0.0
- 
Method SummaryModifier and TypeMethodDescriptionstatic PathcomposePath(File baseDirectory, String... children) Append an arbitrary set of components to a base path.static PathcomposePath(Path baseDirectory, String... children) Append an arbitrary set of components to a base path.static PathjobAgentLogFilePath(File jobDirectory) Compose the path to the agent log file for a job (after it has been relocated inside the job directory).static PathjobApplicationDirectoryPath(File jobDirectory, String appId) Compose the path to an application directory inside a job directory.static PathjobApplicationsDirectoryPath(File jobDirectory) Compose the path to the applications directory inside a job directory.static PathjobClusterDirectoryPath(File jobDirectory, String clusterId) Compose the path to the cluster directory inside a job directory.static PathjobCommandDirectoryPath(File jobDirectory, String commandId) Compose the path to the command directory inside a job directory.static PathjobEntityConfigPath(Path entityDirectory) Compose the path to the configurations directory for a given entity.static PathjobEntityDependenciesPath(Path entityDirectory) Compose the path to the dependencies directory for a given entity.static PathjobEntitySetupFilePath(Path entityDirectory) Compose the path to the setup file for a given entity.static PathjobEnvironmentLogFilePath(File jobDirectory) Compose the path to the file where environment variables are dumped after running setup.static PathjobGenieDirectoryPath(File jobDirectory) Compose the path to the genie directory inside a job directory.static PathjobGenieLogsDirectoryPath(File jobDirectory) Compose the path to the genie logs directory inside a job directory.static PathjobScriptPath(File jobDirectory) Compose the path to the job script (a.k.a.static PathjobSetupErrorMarkerFilePath(File jobDirectory) Compose the path to the marker file left behind if the script fails during setup.static PathjobSetupLogFilePath(File jobDirectory) Compose the path to the setup log file for a job (sourcing of entities setup files).static PathjobStdErrPath(File jobDirectory) Compose the path to the standard error log file for a job.static PathjobStdOutPath(File jobDirectory) Compose the path to the standard output log file for a job.
- 
Method Details- 
composePathAppend an arbitrary set of components to a base path.- Parameters:
- baseDirectory- the base directory
- children- path components
- Returns:
- a Path
 
- 
composePathAppend an arbitrary set of components to a base path.- Parameters:
- baseDirectory- the base directory
- children- path components
- Returns:
- a Path
 
- 
jobApplicationsDirectoryPathCompose the path to the applications directory inside a job directory.- Parameters:
- jobDirectory- the job directory
- Returns:
- a Path
 
- 
jobApplicationDirectoryPathCompose the path to an application directory inside a job directory.- Parameters:
- jobDirectory- the job directory
- appId- the application id
- Returns:
- a Path
 
- 
jobClusterDirectoryPathCompose the path to the cluster directory inside a job directory.- Parameters:
- jobDirectory- the job directory
- clusterId- the cluster id
- Returns:
- a Path
 
- 
jobCommandDirectoryPathCompose the path to the command directory inside a job directory.- Parameters:
- jobDirectory- the job directory
- commandId- the command id
- Returns:
- a Path
 
- 
jobGenieDirectoryPathCompose the path to the genie directory inside a job directory.- Parameters:
- jobDirectory- the job directory
- Returns:
- a Path
 
- 
jobGenieLogsDirectoryPathCompose the path to the genie logs directory inside a job directory.- Parameters:
- jobDirectory- the job directory
- Returns:
- a Path
 
- 
jobEntityDependenciesPathCompose the path to the dependencies directory for a given entity.- Parameters:
- entityDirectory- the entity base directory
- Returns:
- a Path
 
- 
jobEntityConfigPathCompose the path to the configurations directory for a given entity.- Parameters:
- entityDirectory- the entity base directory
- Returns:
- a Path
 
- 
jobEntitySetupFilePathCompose the path to the setup file for a given entity.- Parameters:
- entityDirectory- the entity base directory
- Returns:
- a Path
 
- 
jobStdOutPathCompose the path to the standard output log file for a job.- Parameters:
- jobDirectory- the job directory
- Returns:
- a Path
 
- 
jobStdErrPathCompose the path to the standard error log file for a job.- Parameters:
- jobDirectory- the job directory
- Returns:
- a Path
 
- 
jobAgentLogFilePathCompose the path to the agent log file for a job (after it has been relocated inside the job directory).- Parameters:
- jobDirectory- the job directory
- Returns:
- a Path
 
- 
jobSetupLogFilePathCompose the path to the setup log file for a job (sourcing of entities setup files).- Parameters:
- jobDirectory- the job directory
- Returns:
- a Path
 
- 
jobEnvironmentLogFilePathCompose the path to the file where environment variables are dumped after running setup.- Parameters:
- jobDirectory- the job directory
- Returns:
- a Path
 
- 
jobScriptPathCompose the path to the job script (a.k.a. run file).- Parameters:
- jobDirectory- the job directory
- Returns:
- a Path
 
- 
jobSetupErrorMarkerFilePathCompose the path to the marker file left behind if the script fails during setup.- Parameters:
- jobDirectory- the job directory
- Returns:
- a Path
 
 
-