Class AutoDeployedFilesManager
java.lang.Object
org.glassfish.deployment.autodeploy.AutoDeployedFilesManager
Contains the status of list of files that have been autodeployed.
- Author:
- Mahesh Rangamani
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static final class -
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected -
Method Summary
Modifier and TypeMethodDescriptionprotected static Fileprotected static FileappToUndeployRequestFile(File autodeployDir, File f) voidFile[]getFilesForDeployment(File[] latestFiles) Compare the list of files with the current status info and determine the files that need to be deployedFile[]getFilesForUndeployment(File[] latestFiles) Compare the list of files with the current status info and determine the apps that need to be undeployed.static AutoDeployedFilesManagerloadStatus(File statusDir) Create an instance from the persisted file in the specified directory.static AutoDeployedFilesManagerloadStatus(String autoDeploymentDir) voidUpdate the status of the file as deployed.void
-
Field Details
-
deplLogger
-
statDir
-
-
Constructor Details
-
AutoDeployedFilesManager
public AutoDeployedFilesManager() -
AutoDeployedFilesManager
-
-
Method Details
-
loadStatus
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
- Throws:
Exception
-
writeStatus
- Throws:
Exception
-
setDeployedFileInfo
Update the status of the file as deployed.- Throws:
Exception
-
deleteDeployedFileInfo
- Throws:
Exception
-
getFilesForDeployment
Compare the list of files with the current status info and determine the files that need to be deployed -
getFilesForUndeployment
Compare the list of files with the current status info and determine the apps that need to be undeployed. -
appToUndeployRequestFile
-
appToUndeployRequestFile
-