com.supermap.services.components.impl

Class TileTaskRunnerBase

  • java.lang.Object
    • com.supermap.services.components.impl.TileTaskRunnerBase
    • Constructor Detail

      • TileTaskRunnerBase

        public TileTaskRunnerBase()
        
    • Method Detail

      • restart

        public static void restart(java.lang.Throwable e)
        
      • getState

        public TileTaskState getState(java.lang.String taskId)
        

        Returns the state information of the tile task, including whether the current task was executed by that tangent point and whether it was completed.

        Specified by:
        getState in interface TileTaskRunner
        Parameters:
        taskId -
        Returns:
        Since:
        6.1.3
      • addListener

        public void addListener(TileTaskRunner.RunnerListener listener)
        

        Registers a listener to monitor changes in the execution status of the tile task, such as the start of the task, the end, and so on.

        Specified by:
        addListener in interface TileTaskRunner
        Parameters:
        listener -
        Since:
        6.1.3
      • setTask

        public void setTask(TileTask task)
        

        Sets the tile task information.

        Specified by:
        setTask in interface TileTaskRunner
        Parameters:
        task -
        Since:
        6.1.3
      • setWorkerConfig

        public void setWorkerConfig(WorkerConfig workerConfig)
        

        Sets the configuration of the tile node, including the number of tiling threads and the number of cutting map threads.

        Specified by:
        setWorkerConfig in interface TileTaskRunner
        Parameters:
        workerConfig -
        Since:
        6.1.3
      • getTaskExecutingState

        public TaskExecutingState getTaskExecutingState()
        

        Returns the details of the execution status of the tile task, which is much more informative than the results from<. Including the task start time, the current speed, how many tiles have been completed.

        Specified by:
        getTaskExecutingState in interface TileTaskRunner
        Returns:
        Since:
        6.1.3
      • cancel

        public void cancel()
        

        Cancels execution

        Specified by:
        cancel in interface TileTaskRunner
        Since:
        6.1.3
      • setJobBuildConfig

        public void setJobBuildConfig(JobBuildConfig value)
        

        Sets the configuration information of the tiling job.

        Parameters:
        value -
        Since:
        6.1.3
      • setStore

        public void setStore(TileStore value)
        

        Sets tile storage.

        Parameters:
        value -
        Since:
        6.1.3
      • setMap

        public void setMap(Map value)
        

        Sets the business component for tiling.

        Parameters:
        value -
        Since:
        6.1.3