public interface TileMaster extends Disposable
Modifier and Type | Method and Description |
---|---|
TileJob |
addJob(JobInfo info)
Creates a tiling job
|
boolean |
addTileWorker(TileWorkerInfo conInfo)
Adds the tiling node.
|
void |
analystBlankTile(java.lang.String jobId)
Notifies a named tiling job began to analysis the white chart information
|
java.lang.String |
confirmBlanRegionInfos(java.lang.String jobId)
Notifies the master node that the white chart information of the named tiling job has be confirmed by user.
|
boolean |
deleteJob(java.lang.String jobID)
Deletes the tiling job
|
BlankTileInfo |
getBlankTileInfos(java.lang.String jobId, double scale, int fromIndex, int toIndex)
Returns all the white chart information
|
TileJob |
getTileJob(java.lang.String jobID)
Returns a named tiling job information
|
java.util.List<TileJob> |
getTileJobs()
Returns all tiling job information
|
TileWorkerState |
getWorkerState(java.lang.String workerId)
Returns the state of a named tiling node
|
TileWorkerState[] |
getWorkerStates()
Returns the status of all tiling nodes.
|
boolean |
notifyJobDeployCompleted(java.lang.String jobId, java.lang.String workerId)
Notifies the tiling master node, and the tiling job is deployed successfully at the tiling node
|
boolean |
notifyTaskCompleted(java.lang.String jobId, java.lang.String taskId, java.lang.String workerId)
Notifies the tiling master node that the tiling task completed.
|
boolean |
notifyTaskCompleted(java.lang.String jobId, java.lang.String taskId, java.lang.String workerId, TileTaskBuildResult result)
Notifies the tiling master node that a tiling task was successful.
|
boolean |
notifyTaskFailed(java.lang.String jobId, java.lang.String taskId, java.lang.String workerId)
Notifies the tiling master node that the tiling task failed.
|
void |
redeployJobToWorker(java.lang.String jobId, java.lang.String workerId)
When deploying a tiling task to a worker fails, it is used for redeployment.
|
void |
removeTileWorker(java.lang.String workerId)
Removes the tiling node.
|
void |
restart(java.lang.String jobId)
Restarts the tiling job
|
void |
setJobInfoPREProcessor(JobInfoPREProcessor processor)
Sets the tiling Job Preprocessor
|
void |
setJobRunnerFactory(JobRunnerFactory factory)
Sets the tile operator factory
|
void |
startJob(java.lang.String jobId)
Starts the tiling job
|
void |
stopJob(java.lang.String jobId)
Stops the tiling job
|
void |
updateBlankRegion(java.lang.String jobId, double scale, java.lang.String[] invalidRegionIds, java.lang.String[] validRegionIds, java.lang.String[] noneMarkedRegionIds, boolean markAllInvalid, boolean markedAllValid)
Submits a confirmation message of the white chart information
|
void |
workerQuit(TileWorkerInfo conInfo)
The tile node exits
|
dispose
boolean addTileWorker(TileWorkerInfo conInfo)
Adds the tiling node.
conInfo
-void removeTileWorker(java.lang.String workerId)
Removes the tiling node.
workerId
-void workerQuit(TileWorkerInfo conInfo)
The tile node exits
conInfo
-void stopJob(java.lang.String jobId)
Stops the tiling job
jobId
-void startJob(java.lang.String jobId)
Starts the tiling job
jobId
-void restart(java.lang.String jobId)
Restarts the tiling job
jobId
-void setJobInfoPREProcessor(JobInfoPREProcessor processor)
Sets the tiling Job Preprocessor
processor
-void setJobRunnerFactory(JobRunnerFactory factory)
Sets the tile operator factory
factory
-java.util.List<TileJob> getTileJobs()
Returns all tiling job information
TileJob getTileJob(java.lang.String jobID)
Returns a named tiling job information
jobID
-boolean notifyJobDeployCompleted(java.lang.String jobId, java.lang.String workerId)
Notifies the tiling master node, and the tiling job is deployed successfully at the tiling node
jobId
-workerId
-boolean notifyTaskCompleted(java.lang.String jobId, java.lang.String taskId, java.lang.String workerId)
Notifies the tiling master node that the tiling task completed.
jobId
-taskId
-workerId
-boolean notifyTaskFailed(java.lang.String jobId, java.lang.String taskId, java.lang.String workerId)
Notifies the tiling master node that the tiling task failed.
jobId
-taskId
-workerId
-boolean deleteJob(java.lang.String jobID)
Deletes the tiling job
jobID
-boolean notifyTaskCompleted(java.lang.String jobId, java.lang.String taskId, java.lang.String workerId, TileTaskBuildResult result)
Notifies the tiling master node that a tiling task was successful.
jobId
-taskId
-workerId
-result
-void analystBlankTile(java.lang.String jobId)
Notifies a named tiling job began to analysis the white chart information
jobId
-BlankTileInfo getBlankTileInfos(java.lang.String jobId, double scale, int fromIndex, int toIndex)
Returns all the white chart information
jobId
-scale
-fromIndex
-toIndex
-void updateBlankRegion(java.lang.String jobId, double scale, java.lang.String[] invalidRegionIds, java.lang.String[] validRegionIds, java.lang.String[] noneMarkedRegionIds, boolean markAllInvalid, boolean markedAllValid)
Submits a confirmation message of the white chart information
jobId
-scale
-invalidRegionIds
-validRegionIds
-noneMarkedRegionIds
-markAllInvalid
-markedAllValid
-java.lang.String confirmBlanRegionInfos(java.lang.String jobId)
Notifies the master node that the white chart information of the named tiling job has be confirmed by user.
jobId
-TileWorkerState[] getWorkerStates()
Returns the status of all tiling nodes.
TileWorkerState getWorkerState(java.lang.String workerId)
Returns the state of a named tiling node
workerId
-void redeployJobToWorker(java.lang.String jobId, java.lang.String workerId)
When deploying a tiling task to a worker fails, it is used for redeployment.
jobId
- The task id needs to be redeployed.workerId
- Needs to redeploy the worker's id.