public class DefaultFileWorkspaceDeployStateManager
extends java.lang.Object
The class used to save the file deployment status in the file workspace.
| Constructor and Description | 
|---|
| DefaultFileWorkspaceDeployStateManager(java.lang.String saveDirectory)The Constructor. | 
| Modifier and Type | Method and Description | 
|---|---|
| void | addFailedFile(java.lang.String workspacePath, java.lang.String workerId, java.io.File file, java.lang.String uploadTaskId)Adds workspace file deployment failure information. | 
| void | clearFailedUploadTasks(java.lang.String workspacePath)Clears the upload failure file information in the workspace. | 
| void | clearFailedUploadTasks(java.lang.String workspacePath, java.lang.String workerId)Clears the workspace deployment information. | 
| FailedUploadTask[] | getFailedUploadTasks(java.lang.String workspacePath, java.lang.String workerId)Gets the file for the workspace deployment failure. | 
| void | removeFailedFile(java.lang.String workspacePath, java.lang.String workerId, java.io.File file)Removes the failure file information. | 
public DefaultFileWorkspaceDeployStateManager(java.lang.String saveDirectory)
The Constructor.
saveDirectory - Stores the folder where the file is located.
public FailedUploadTask[] getFailedUploadTasks(java.lang.String workspacePath,
                                      java.lang.String workerId)
Gets the file for the workspace deployment failure.
workspacePath - Workspace path.workerId - Tile node ID.
public void clearFailedUploadTasks(java.lang.String workspacePath,
                          java.lang.String workerId)
Clears the workspace deployment information.
workspacePath -workerId -
public void addFailedFile(java.lang.String workspacePath,
                 java.lang.String workerId,
                 java.io.File file,
                 java.lang.String uploadTaskId)
Adds workspace file deployment failure information.
workspacePath - Workspace path.workerId - Tile node ID.file - Upload failed file.uploadTaskId - The id of Upload task.
public void removeFailedFile(java.lang.String workspacePath,
                    java.lang.String workerId,
                    java.io.File file)
Removes the failure file information.
workspacePath -workerId -file -public void clearFailedUploadTasks(java.lang.String workspacePath)
Clears the upload failure file information in the workspace.
workspacePath -