com.supermap.services.components.impl
Class DefaultFileWorkspaceDeployStateManager
- java.lang.Object
-
- com.supermap.services.components.impl.DefaultFileWorkspaceDeployStateManager
-
public class DefaultFileWorkspaceDeployStateManager extends java.lang.ObjectThe class used to save the file deployment status in the file workspace.
- Since:
- 7.0.1
-
-
Constructor Summary
Constructors Constructor and Description DefaultFileWorkspaceDeployStateManager(java.lang.String saveDirectory)The Constructor.
-
Method Summary
Methods Modifier and Type Method and Description voidaddFailedFile(java.lang.String workspacePath, java.lang.String workerId, java.io.File file, java.lang.String uploadTaskId)Adds workspace file deployment failure information.voidclearFailedUploadTasks(java.lang.String workspacePath)Clears the upload failure file information in the workspace.voidclearFailedUploadTasks(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.voidremoveFailedFile(java.lang.String workspacePath, java.lang.String workerId, java.io.File file)Removes the failure file information.
-
-
-
Constructor Detail
-
DefaultFileWorkspaceDeployStateManager
public DefaultFileWorkspaceDeployStateManager(java.lang.String saveDirectory)
The Constructor.
- Parameters:
saveDirectory- Stores the folder where the file is located.
-
-
Method Detail
-
getFailedUploadTasks
public FailedUploadTask[] getFailedUploadTasks(java.lang.String workspacePath, java.lang.String workerId)Gets the file for the workspace deployment failure.
- Parameters:
workspacePath- Workspace path.workerId- Tile node ID.- Returns:
- Specifies the file information that failed when the workspace was deployed to the specified tile node.
- Since:
- 7.0.1
-
clearFailedUploadTasks
public void clearFailedUploadTasks(java.lang.String workspacePath, java.lang.String workerId)Clears the workspace deployment information.
- Parameters:
workspacePath-workerId-- Since:
- 7.0.1
-
addFailedFile
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.
- Parameters:
workspacePath- Workspace path.workerId- Tile node ID.file- Upload failed file.uploadTaskId- The id of Upload task.- Since:
- 7.0.1
-
removeFailedFile
public void removeFailedFile(java.lang.String workspacePath, java.lang.String workerId, java.io.File file)Removes the failure file information.
- Parameters:
workspacePath-workerId-file-- Since:
- 7.0.1
-
clearFailedUploadTasks
public void clearFailedUploadTasks(java.lang.String workspacePath)
Clears the upload failure file information in the workspace.
- Parameters:
workspacePath-- Since:
- 7.0.1
-
-