public interface TileTaskRunner
Tile task runner. Currently, each TileTask
corresponds to a TileTaskRunner
Modifier and Type | Interface and Description |
---|---|
static interface |
TileTaskRunner.RunnerListener
Tile task execution status listener
|
Modifier and Type | Method and Description |
---|---|
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.
|
void |
cancel()
Cancels execution
|
void |
dispose()
Destroys the tile runner
|
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.
|
TaskExecutingState |
getTaskExecutingState()
Returns the details of the execution status of the tile task, which is much more informative than the results from<.
|
void |
init(WorkerConfig pWorkerConfig, CheckedJobBuildConfig pJobConfig, TileStore pStore, KeyValueStore kvStore, Map pMap)
Initialization
|
void |
setMasterClient(TileMasterClient masterClient) |
void |
setTask(TileTask tileTask)
Sets the tile task information.
|
void |
setWorkerConfig(WorkerConfig workerConfig)
Sets the configuration information of the tile node.
|
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.
taskId
-void init(WorkerConfig pWorkerConfig, CheckedJobBuildConfig pJobConfig, TileStore pStore, KeyValueStore kvStore, Map pMap)
Initialization
pWorkerConfig
-pJobConfig
-pStore
-kvStore
-pMap
-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.
listener
-void setTask(TileTask tileTask)
Sets the tile task information.
tileTask
-void setWorkerConfig(WorkerConfig workerConfig)
Sets the configuration information of the tile node.
workerConfig
-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.
void cancel()
Cancels execution
void dispose()
Destroys the tile runner
void setMasterClient(TileMasterClient masterClient)