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.Exception
public static AutoDeployedFilesManager loadStatus(String autoDeploymentDir) throws Exception
Exception
public void setDeployedFileInfo(File f) throws Exception
f
- Exception
public void deleteDeployedFileInfo(File f) throws Exception
Exception
public File[] getFilesForDeployment(File[] latestFiles)
latestFiles
- public File[] getFilesForUndeployment(File[] latestFiles)
latestFiles
- Copyright © 2020. All rights reserved.