org.glassfish.deployment.autodeploy
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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
statDir
protected String statDir
AutoDeployedFilesManager
public AutoDeployedFilesManager()
AutoDeployedFilesManager
protected AutoDeployedFilesManager(String s)
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.