org.glassfish.deployment.autodeploy
Class AutoDeployedFilesManager

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

public class AutoDeployedFilesManager
extends Object

Contains the status of list of files that have been autodeployed.

Author:
Mahesh Rangamani

Nested Class Summary
protected static class AutoDeployedFilesManager.UndeployRequestedFile
           
 
Field Summary
protected  String statDir
           
 
Constructor Summary
  AutoDeployedFilesManager()
           
protected AutoDeployedFilesManager(String s)
           
 
Method Summary
protected static File appToUndeployRequestFile(File f)
           
protected static File appToUndeployRequestFile(File autodeployDir, File f)
           
 void deleteDeployedFileInfo(File f)
           
 File[] getFilesForDeployment(File[] latestFiles)
          Compare the list of files with the current status info and determine the files that need to be deployed
 File[] getFilesForUndeployment(File[] latestFiles)
          Compare the list of files with the current status info and determine the apps that need to be undeployed.
static AutoDeployedFilesManager loadStatus(File statusDir)
          Create an instance from the persisted file in the specified directory.
static AutoDeployedFilesManager loadStatus(String autoDeploymentDir)
           
 void setDeployedFileInfo(File f)
          Update the status of the file as deployed.
 void writeStatus()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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.
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)


Copyright © 2012. All Rights Reserved.