public class AutoDeployedFilesManager extends Object
| Modifier and Type | Class and Description |
|---|---|
protected static class |
AutoDeployedFilesManager.UndeployRequestedFile |
| Modifier and Type | Field and Description |
|---|---|
static Logger |
deplLogger |
protected String |
statDir |
| Modifier | Constructor and Description |
|---|---|
|
AutoDeployedFilesManager() |
protected |
AutoDeployedFilesManager(String s) |
| Modifier and Type | Method and Description |
|---|---|
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() |
public AutoDeployedFilesManager()
protected AutoDeployedFilesManager(String s)
public static AutoDeployedFilesManager loadStatus(File statusDir) throws Exception
statusDir - Directory in which the status file is to read.Exceptionpublic static AutoDeployedFilesManager loadStatus(String autoDeploymentDir) throws Exception
Exceptionpublic void setDeployedFileInfo(File f) throws Exception
Exceptionpublic void deleteDeployedFileInfo(File f) throws Exception
Exceptionpublic File[] getFilesForDeployment(File[] latestFiles)
public File[] getFilesForUndeployment(File[] latestFiles)
Copyright © 2017. All rights reserved.