Class TileTaskRunnerBase
- java.lang.Object
-
- com.supermap.services.components.impl.TileTaskRunnerBase
-
- All Implemented Interfaces:
- Disposable, TileTaskRunner
- Direct Known Subclasses:
- DataPreProcessTaskRunner, DefaultTileTaskRunner
public class TileTaskRunnerBase extends java.lang.Object implements TileTaskRunner, Disposable
-
-
Nested Class Summary
Nested Classes Modifier and Type Class and Description classTileTaskRunnerBase.TaskStateListener-
Nested classes/interfaces inherited from interface com.supermap.services.components.TileTaskRunner
TileTaskRunner.RunnerListener
-
-
Constructor Summary
Constructors Constructor and Description TileTaskRunnerBase()
-
Method Summary
Methods Modifier and Type Method and Description voidaddListener(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.voidcancel()Cancels executionvoiddispose()Release the current task executorTileTaskStategetState(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.TaskExecutingStategetTaskExecutingState()Returns the details of the execution status of the tile task, which is much more informative than the results from<.voidinit(WorkerConfig pWorkerConfig, CheckedJobBuildConfig pJobConfig, TileStore pStore, KeyValueStore kvStore, Map pMap)Initializationstatic voidrestart(java.lang.Throwable e)voidsetJobBuildConfig(JobBuildConfig value)Sets the configuration information of the tiling job.voidsetMap(Map value)Sets the business component for tiling.voidsetMasterClient(TileMasterClient masterClient)voidsetStore(TileStore value)Sets tile storage.voidsetTask(TileTask task)Sets the tile task information.voidsetWorkerConfig(WorkerConfig workerConfig)Sets the configuration of the tile node, including the number of tiling threads and the number of cutting map threads.
-
-
-
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:
getStatein interfaceTileTaskRunner- Parameters:
taskId-- Returns:
- Since:
- 6.1.3
-
init
public void init(WorkerConfig pWorkerConfig, CheckedJobBuildConfig pJobConfig, TileStore pStore, KeyValueStore kvStore, Map pMap)
Description copied from interface:TileTaskRunnerInitialization
- Specified by:
initin interfaceTileTaskRunner
-
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:
addListenerin interfaceTileTaskRunner- Parameters:
listener-- Since:
- 6.1.3
-
setTask
public void setTask(TileTask task)
Sets the tile task information.
- Specified by:
setTaskin interfaceTileTaskRunner- 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:
setWorkerConfigin interfaceTileTaskRunner- 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:
getTaskExecutingStatein interfaceTileTaskRunner- Returns:
- Since:
- 6.1.3
-
cancel
public void cancel()
Cancels execution
- Specified by:
cancelin interfaceTileTaskRunner- Since:
- 6.1.3
-
setMasterClient
public void setMasterClient(TileMasterClient masterClient)
- Specified by:
setMasterClientin interfaceTileTaskRunner
-
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
-
dispose
public void dispose()
Release the current task executor
- Specified by:
disposein interfaceDisposable- Specified by:
disposein interfaceTileTaskRunner- Since:
- 6.1.3
-
-