com.supermap.services.components.impl

Class DefaultFileWorkspaceDeployStateManager

  • java.lang.Object
    • com.supermap.services.components.impl.DefaultFileWorkspaceDeployStateManager


  • public class DefaultFileWorkspaceDeployStateManager
    extends java.lang.Object
    

    The class used to save the file deployment status in the file workspace.

    Since:
    7.0.1
    • Method Summary

      Methods 
      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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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