Class AutoDeployedFilesManager


  • public class AutoDeployedFilesManager
    extends Object
    Contains the status of list of files that have been autodeployed.
    Author:
    Mahesh Rangamani
    • Field Detail

      • deplLogger

        public static final Logger deplLogger
      • statDir

        protected String statDir
    • Constructor Detail

      • AutoDeployedFilesManager

        public AutoDeployedFilesManager()
      • AutoDeployedFilesManager

        protected AutoDeployedFilesManager​(String s)
    • Method Detail

      • loadStatus

        public static AutoDeployedFilesManager loadStatus​(File statusDir)
                                                   throws Exception
        Create an instance from the persisted file in the specified directory.
        Parameters:
        statusDir - Directory in which the status file is to read.
        Returns:
        Throws:
        Exception
      • setDeployedFileInfo

        public void setDeployedFileInfo​(File f)
                                 throws Exception
        Update the status of the file as deployed.
        Parameters:
        f -
        Throws:
        Exception
      • getFilesForDeployment

        public File[] getFilesForDeployment​(File[] latestFiles)
        Compare the list of files with the current status info and determine the files that need to be deployed
        Parameters:
        latestFiles -
        Returns:
      • getFilesForUndeployment

        public File[] getFilesForUndeployment​(File[] latestFiles)
        Compare the list of files with the current status info and determine the apps that need to be undeployed.
        Parameters:
        latestFiles -
        Returns:
      • appToUndeployRequestFile

        protected static File appToUndeployRequestFile​(File autodeployDir,
                                                       File f)
      • appToUndeployRequestFile

        protected static File appToUndeployRequestFile​(File f)