Class FileUtils


  • public class FileUtils
    extends Object
    Author:
    Andrea Di Cesare <andrea@softinstigate.com>
    • Method Detail

      • getFileAbsolutePath

        public static Path getFileAbsolutePath​(String path)
        Parameters:
        path -
        Returns:
      • getFileAbsolutePathHash

        public static int getFileAbsolutePathHash​(Path confFilePath,
                                                  Path propFilePath)
        Parameters:
        confFilePath -
        propFilePath -
        Returns:
      • getConfigurationFilePath

        public static Path getConfigurationFilePath​(String[] args)
        Parameters:
        args -
        Returns:
      • getPropertiesFilePath

        public static Path getPropertiesFilePath​(String[] args)
        Parameters:
        args -
        Returns:
      • getTmpDirPath

        public static Path getTmpDirPath()
        Returns:
      • getPidFilePath

        public static Path getPidFilePath​(int configurationFileHash)
        Parameters:
        configurationFileHash -
        Returns:
      • createPidFile

        public static void createPidFile​(Path pidFile)
        Parameters:
        pidFile -
      • getPidFromFile

        public static int getPidFromFile​(Path pidFile)
        Parameters:
        pidFile -
        Returns: