org.glassfish.deployment.autodeploy
Class AutoDeployedFilesManager
java.lang.Object
org.glassfish.deployment.autodeploy.AutoDeployedFilesManager
public class AutoDeployedFilesManager
- extends java.lang.Object
Contains the status of list of files that have been autodeployed.
- Author:
- Mahesh Rangamani
|
Field Summary |
protected java.lang.String |
statDir
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
statDir
protected java.lang.String statDir
AutoDeployedFilesManager
public AutoDeployedFilesManager()
AutoDeployedFilesManager
protected AutoDeployedFilesManager(java.lang.String s)
loadStatus
public static AutoDeployedFilesManager loadStatus(java.io.File statusDir)
throws java.lang.Exception
- Create an instance from the persisted file in the specified directory.
- Parameters:
statusDir - Directory in which the status file is to read.
- Throws:
java.lang.Exception
loadStatus
public static AutoDeployedFilesManager loadStatus(java.lang.String autoDeploymentDir)
throws java.lang.Exception
- Throws:
java.lang.Exception
writeStatus
public void writeStatus()
throws java.lang.Exception
- Throws:
java.lang.Exception
setDeployedFileInfo
public void setDeployedFileInfo(java.io.File f)
throws java.lang.Exception
- Update the status of the file as deployed.
- Throws:
java.lang.Exception
deleteDeployedFileInfo
public void deleteDeployedFileInfo(java.io.File f)
throws java.lang.Exception
- Throws:
java.lang.Exception
getFilesForDeployment
public java.io.File[] getFilesForDeployment(java.io.File[] latestFiles)
- Compare the list of files with the current status info
and determine the files that need to be deployed
getFilesForUndeployment
public java.io.File[] getFilesForUndeployment(java.io.File[] latestFiles)
- Compare the list of files with the current status info
and determine the apps that need to be undeployed.
appToUndeployRequestFile
protected static java.io.File appToUndeployRequestFile(java.io.File autodeployDir,
java.io.File f)
appToUndeployRequestFile
protected static java.io.File appToUndeployRequestFile(java.io.File f)
Copyright © 2012 GlassFish Community. All Rights Reserved.