public interface JobRunner
Tiling task container for running a distributed tiling task.
Modifier and Type | Method and Description |
---|---|
void |
addListener(JobRunnerListener listener)
Add listener.
|
void |
addWorkers(java.util.List<TileWorkerClient> workers)
Adds the tiling node.
|
void |
confirmBlankRegionInfos(java.lang.String id)
Confirms the white map range.
|
void |
deployJobToWorker(TileWorkerClient client)
Assigns a tiling task to a child node.
|
BlankTileInfo |
getBlankTileInfos(double scale, int fromIndex, int toIndex)
Gets the white map information.
|
JobBuildConfig |
getJobConfig()
Gets task configuration information.
|
JobState |
getState()
Gets Job status.
|
TilesetDesc |
getTilesetDesc()
Get the target information for the task.
|
void |
init(JobBuildConfig config, JobState state, JobDataDeploy dataDeploy)
Initialize Runner
|
void |
notifyJobDeployCompleted(java.lang.String workerId)
Notifies the tiling master node, and the tiling job is deployed successfully at the tiling node
|
void |
notifyTaskCompleted(java.lang.String taskId, java.lang.String workerId)
Notifies the tiling master node that a unit tiling task completed.
|
void |
notifyTaskCompleted(java.lang.String taskId, java.lang.String workerId, TileTaskBuildResult result)
Notifies the tiling master node that a unit tiling task completed.
|
void |
notifyTaskFailed(java.lang.String taskId, java.lang.String workerId)
Notifies the tiling master node that a unit tiling task failed.
|
void |
notifyWorkerDisconnected(java.lang.String workerId)
Notifies the tiling master node that a child node connection failed.
|
void |
setTileCountPerTask(long value)
Sets the number of tiles assigned to each unit's tiling task.
|
void |
setTileRegionManager(TileRegionStateManager tileRegionStateManager)
Set the Tile Area Manager.
|
void |
start()
Starts the task.
|
void |
stop()
Stops the task.
|
void |
updateBlankRegions(double scale, java.lang.String[] invalidRegionIds, java.lang.String[] validRegionIds, java.lang.String[] noneMarkedRegionIds, boolean markAllInvalid, boolean markAllValid)
Updates the white map range.
|
void |
updateTileJob(Tile[] tiles)
Updates the tiling task.
|
JobBuildConfig getJobConfig()
Gets task configuration information.
void init(JobBuildConfig config, JobState state, JobDataDeploy dataDeploy)
config
-state
- can be nullvoid start()
Starts the task.
void stop()
Stops the task.
void addWorkers(java.util.List<TileWorkerClient> workers)
Adds the tiling node.
workers
-JobState getState()
TilesetDesc getTilesetDesc()
void setTileCountPerTask(long value)
Sets the number of tiles assigned to each unit's tiling task. For a unit tiling task, see TileTask
.
value
- The number of tiles.void notifyJobDeployCompleted(java.lang.String workerId)
Notifies the tiling master node, and the tiling job is deployed successfully at the tiling node
jobId
-workerId
-void notifyTaskCompleted(java.lang.String taskId, java.lang.String workerId)
Notifies the tiling master node that a unit tiling task completed.
taskId
- The completed Unit tiling task ID.workerId
- TaskId unit tiling task where the worker exists.void notifyTaskFailed(java.lang.String taskId, java.lang.String workerId)
Notifies the tiling master node that a unit tiling task failed.
taskId
-workerId
-void notifyWorkerDisconnected(java.lang.String workerId)
Notifies the tiling master node that a child node connection failed.
workerId
-void addListener(JobRunnerListener listener)
Add listener.
listener
-void notifyTaskCompleted(java.lang.String taskId, java.lang.String workerId, TileTaskBuildResult result)
Notifies the tiling master node that a unit tiling task completed.
taskId
-workerId
-result
-void deployJobToWorker(TileWorkerClient client)
Assigns a tiling task to a child node.
client
-void updateTileJob(Tile[] tiles)
Updates the tiling task.
tiles
-BlankTileInfo getBlankTileInfos(double scale, int fromIndex, int toIndex)
Gets the white map information.
scale
-fromIndex
-toIndex
-void confirmBlankRegionInfos(java.lang.String id)
Confirms the white map range.
id
-void updateBlankRegions(double scale, java.lang.String[] invalidRegionIds, java.lang.String[] validRegionIds, java.lang.String[] noneMarkedRegionIds, boolean markAllInvalid, boolean markAllValid)
Updates the white map range.
scale
-invalidRegionIds
-validRegionIds
-noneMarkedRegionIds
-markAllInvalid
-markAllValid
-void setTileRegionManager(TileRegionStateManager tileRegionStateManager)
Set the Tile Area Manager.
tileRegionStateManager
-