Class AutoDeployedFilesManager

java.lang.Object
org.glassfish.deployment.autodeploy.AutoDeployedFilesManager

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

    • deplLogger

      public static final Logger deplLogger
    • statDir

      protected String statDir
  • Constructor Details

    • AutoDeployedFilesManager

      public AutoDeployedFilesManager()
    • AutoDeployedFilesManager

      protected AutoDeployedFilesManager(String s)
  • Method Details

    • 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.
      Throws:
      Exception
    • loadStatus

      public static AutoDeployedFilesManager loadStatus(String autoDeploymentDir) throws Exception
      Throws:
      Exception
    • writeStatus

      public void writeStatus() throws Exception
      Throws:
      Exception
    • setDeployedFileInfo

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

      public void deleteDeployedFileInfo(File f) throws Exception
      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
    • 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.
    • appToUndeployRequestFile

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

      protected static File appToUndeployRequestFile(File f)