com.supermap.services.components.impl

Class DefaultTileMaster.StateSaver

  • java.lang.Object
    • com.supermap.services.components.impl.DefaultTileMaster.StateSaver
    • Method Summary

      Methods 
      Modifier and Type Method and Description
      void addJob(JobBuildConfig processed, JobState state)
      Updates the tiling task.
      protected boolean copyFileQuietly(java.io.File file, java.io.File bakFile) 
      protected void deleteBakFile(java.io.File bakFile) 
      void dispose()
      Release resources.
      protected java.io.File getConfigFile(java.lang.String key) 
      protected java.io.File getStateFile(java.lang.String key) 
      void load()
      Read the tiling information from the configuration file.
      void notifyStateInited(JobBuildConfig config, JobState state)
      Marks the type of the task to be initialization completed.
      void notifyStateUpdated(JobBuildConfig config, JobState state)
      Marks the type of the task to be update completed.
      protected <T> T read(java.lang.Class<T> clz, java.lang.String nodeName, java.io.File file) 
      boolean remove(java.lang.String jobID)
      Deletes the corresponding configuration file information through the job ID.
      void setDefaultTileMaster(DefaultTileMaster value)
      Setting tiling master node.
      void setDirectory(java.io.File value)
      Sets the output folder.
      protected boolean writeContentToFile(java.lang.String content, java.io.File file) 
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DefaultTileMaster.StateSaver

        public DefaultTileMaster.StateSaver()
        

        The Constructor.

    • Method Detail

      • dispose

        public void dispose()
        

        Release resources.

      • setDirectory

        public void setDirectory(java.io.File value)
                          throws java.io.IOException
        

        Sets the output folder.

        Parameters:
        value -
        Throws:
        java.io.IOException
      • setDefaultTileMaster

        public void setDefaultTileMaster(DefaultTileMaster value)
        

        Setting tiling master node.

        Parameters:
        value -
      • addJob

        public void addJob(JobBuildConfig processed,
                  JobState state)
        

        Updates the tiling task.

        Parameters:
        processor -
        state -
      • load

        public void load()
        

        Read the tiling information from the configuration file.

      • remove

        public boolean remove(java.lang.String jobID)
        

        Deletes the corresponding configuration file information through the job ID.

        Parameters:
        jobID -
        Returns:
      • read

        protected <T> T read(java.lang.Class<T> clz,
                 java.lang.String nodeName,
                 java.io.File file)
        
      • getStateFile

        protected java.io.File getStateFile(java.lang.String key)
        
      • getConfigFile

        protected java.io.File getConfigFile(java.lang.String key)
        
      • copyFileQuietly

        protected boolean copyFileQuietly(java.io.File file,
                              java.io.File bakFile)
        
      • writeContentToFile

        protected boolean writeContentToFile(java.lang.String content,
                                 java.io.File file)
        
      • deleteBakFile

        protected void deleteBakFile(java.io.File bakFile)