com.supermap.services.components
Interface TileTaskRunner
-
- All Known Implementing Classes:
- DataPreProcessTaskRunner, DefaultTileTaskRunner, TileTaskRunnerBase
public interface TileTaskRunnerTile task runner. Currently, each
TileTaskcorresponds to a TileTaskRunner
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface and Description static interfaceTileTaskRunner.RunnerListenerTile task execution status listener
-
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()Destroys the tile runnerTileTaskStategetState(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)InitializationvoidsetMasterClient(TileMasterClient masterClient)voidsetTask(TileTask tileTask)Sets the tile task information.voidsetWorkerConfig(WorkerConfig workerConfig)Sets the configuration information of the tile node.
-
-
-
Method Detail
-
getState
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.
- Parameters:
taskId-- Returns:
- Since:
- 6.1.3
-
init
void init(WorkerConfig pWorkerConfig, CheckedJobBuildConfig pJobConfig, TileStore pStore, KeyValueStore kvStore, Map pMap)
Initialization
- Parameters:
pWorkerConfig-pJobConfig-pStore-kvStore-pMap-- Since:
- 6.1.3
-
addListener
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.
- Parameters:
listener-- Since:
- 6.1.3
-
setTask
void setTask(TileTask tileTask)
Sets the tile task information.
- Parameters:
tileTask-- Since:
- 6.1.3
-
setWorkerConfig
void setWorkerConfig(WorkerConfig workerConfig)
Sets the configuration information of the tile node.
- Parameters:
workerConfig-- Since:
- 6.1.3
-
getTaskExecutingState
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.
- Returns:
- Since:
- 6.1.3
-
cancel
void cancel()
Cancels execution
- Since:
- 6.1.3
-
dispose
void dispose()
Destroys the tile runner
- Since:
- 7.1.2
-
setMasterClient
void setMasterClient(TileMasterClient masterClient)
-
-