Interface TileMaster
-
- All Superinterfaces:
- Disposable
- All Known Implementing Classes:
- DefaultTileMaster
public interface TileMaster extends Disposable
-
-
Method Summary
Methods Modifier and Type Method and Description TileJobaddJob(JobInfo info)Creates a tiling jobbooleanaddTileWorker(TileWorkerInfo conInfo)Adds the tiling node.voidanalystBlankTile(java.lang.String jobId)Notifies a named tiling job began to analysis the white chart informationjava.lang.StringconfirmBlanRegionInfos(java.lang.String jobId)Notifies the master node that the white chart information of the named tiling job has be confirmed by user.booleandeleteJob(java.lang.String jobID)Deletes the tiling jobBlankTileInfogetBlankTileInfos(java.lang.String jobId, double scale, int fromIndex, int toIndex)Returns all the white chart informationTileJobgetTileJob(java.lang.String jobID)Returns a named tiling job informationjava.util.List<TileJob>getTileJobs()Returns all tiling job informationTileWorkerStategetWorkerState(java.lang.String workerId)Returns the state of a named tiling nodeTileWorkerState[]getWorkerStates()Returns the status of all tiling nodes.booleannotifyJobDeployCompleted(java.lang.String jobId, java.lang.String workerId)Notifies the tiling master node, and the tiling job is deployed successfully at the tiling nodebooleannotifyTaskCompleted(java.lang.String jobId, java.lang.String taskId, java.lang.String workerId)Notifies the tiling master node that the tiling task completed.booleannotifyTaskCompleted(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.booleannotifyTaskFailed(java.lang.String jobId, java.lang.String taskId, java.lang.String workerId)Notifies the tiling master node that the tiling task failed.voidredeployJobToWorker(java.lang.String jobId, java.lang.String workerId)When deploying a tiling task to a worker fails, it is used for redeployment.voidremoveTileWorker(java.lang.String workerId)Removes the tiling node.voidrestart(java.lang.String jobId)Restarts the tiling jobvoidsetJobInfoPREProcessor(JobInfoPREProcessor processor)Sets the tiling Job PreprocessorvoidsetJobRunnerFactory(JobRunnerFactory factory)Sets the tile operator factoryvoidstartJob(java.lang.String jobId)Starts the tiling jobvoidstopJob(java.lang.String jobId)Stops the tiling jobvoidupdateBlankRegion(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 informationvoidworkerQuit(TileWorkerInfo conInfo)The tile node exits-
Methods inherited from interface com.supermap.services.components.spi.Disposable
dispose
-
-
-
-
Method Detail
-
addTileWorker
boolean addTileWorker(TileWorkerInfo conInfo)
Adds the tiling node.
- Parameters:
conInfo-- Returns:
- Since:
- 6.1.3
-
removeTileWorker
void removeTileWorker(java.lang.String workerId)
Removes the tiling node.
- Parameters:
workerId-- Since:
- 6.1.3
-
workerQuit
void workerQuit(TileWorkerInfo conInfo)
The tile node exits
- Parameters:
conInfo-- Since:
- 6.1.3
-
stopJob
void stopJob(java.lang.String jobId)
Stops the tiling job
- Parameters:
jobId-- Since:
- 6.1.3
-
startJob
void startJob(java.lang.String jobId)
Starts the tiling job
- Parameters:
jobId-- Since:
- 6.1.3
-
restart
void restart(java.lang.String jobId)
Restarts the tiling job
- Parameters:
jobId-- Since:
- 6.1.3
-
setJobInfoPREProcessor
void setJobInfoPREProcessor(JobInfoPREProcessor processor)
Sets the tiling Job Preprocessor
- Parameters:
processor-- Since:
- 6.1.3
-
setJobRunnerFactory
void setJobRunnerFactory(JobRunnerFactory factory)
Sets the tile operator factory
- Parameters:
factory-- Since:
- 6.1.3
-
getTileJobs
java.util.List<TileJob> getTileJobs()
Returns all tiling job information
- Returns:
- Since:
- 6.1.3
-
getTileJob
TileJob getTileJob(java.lang.String jobID)
Returns a named tiling job information
- Parameters:
jobID-- Returns:
- Since:
- 6.1.3
-
notifyJobDeployCompleted
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
- Parameters:
jobId-workerId-- Returns:
- Since:
- 7.1.1
-
notifyTaskCompleted
boolean notifyTaskCompleted(java.lang.String jobId, java.lang.String taskId, java.lang.String workerId)Notifies the tiling master node that the tiling task completed.
- Parameters:
jobId-taskId-workerId-- Returns:
- Since:
- 6.1.3
-
notifyTaskFailed
boolean notifyTaskFailed(java.lang.String jobId, java.lang.String taskId, java.lang.String workerId)Notifies the tiling master node that the tiling task failed.
- Parameters:
jobId-taskId-workerId-- Returns:
- Since:
- 6.1.3
-
deleteJob
boolean deleteJob(java.lang.String jobID)
Deletes the tiling job
- Parameters:
jobID-- Returns:
- Since:
- 6.1.3
-
notifyTaskCompleted
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.
- Parameters:
jobId-taskId-workerId-result-- Returns:
- Since:
- 6.1.3
-
analystBlankTile
void analystBlankTile(java.lang.String jobId)
Notifies a named tiling job began to analysis the white chart information
- Parameters:
jobId-- Since:
- 6.1.3
-
getBlankTileInfos
BlankTileInfo getBlankTileInfos(java.lang.String jobId, double scale, int fromIndex, int toIndex)
Returns all the white chart information
- Parameters:
jobId-scale-fromIndex-toIndex-- Returns:
- Since:
- 6.1.3
-
updateBlankRegion
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
- Parameters:
jobId-scale-invalidRegionIds-validRegionIds-noneMarkedRegionIds-markAllInvalid-markedAllValid-- Since:
- 6.1.3
-
confirmBlanRegionInfos
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.
- Parameters:
jobId-- Returns:
- Since:
- 6.1.3
-
getWorkerStates
TileWorkerState[] getWorkerStates()
Returns the status of all tiling nodes.
- Returns:
- Since:
- 6.1.3
-
getWorkerState
TileWorkerState getWorkerState(java.lang.String workerId)
Returns the state of a named tiling node
- Parameters:
workerId-- Returns:
- Since:
- 6.1.3
-
redeployJobToWorker
void redeployJobToWorker(java.lang.String jobId, java.lang.String workerId)When deploying a tiling task to a worker fails, it is used for redeployment.
- Parameters:
jobId- The task id needs to be redeployed.workerId- Needs to redeploy the worker's id.- Since:
- 7.0.1
-
-