com.supermap.services.components
Interface TileWorkerClient
-
- All Known Implementing Classes:
- LocalTileWorkerClient
public interface TileWorkerClientTIleWorker 's proxy class on the TileMaster side.
- Since:
- 7.0.1
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface and Description static classTileWorkerClient.ConnectTileWorkerExceptionTile node connection exceptionstatic interfaceTileWorkerClient.WorkerConnectionStateListenerThe tile cutoff point connection status listener.
-
Method Summary
Methods Modifier and Type Method and Description voidaddListener(TileWorkerClient.WorkerConnectionStateListener listener)Register the tiling node connection status listener.voidaddTask(TileTask task)Add a tile taskCompConnInfodeployData(JobBuildConfig config, JobDeployingInfo deployingInfo)Deploy data.voiddeployJob(JobBuildConfig config)Deploy a tiling jobjava.lang.StringgetId()Returns the id of the tile node.TileWorkerInfogetInfo()Returns the connection information of the tile nodeTileWorkerStategetState()Gets the child node stateTileTaskStategetTaskState(java.lang.String taskId)Returns the execution state of a named tile task.booleannotifyJobCompleted(java.lang.String jobId)Notifies the TileWorker node that the tiling task has been completed and can turn off some of the resources (eg thread, memory pool, etc.) for the application.booleannotifyJobTaskComplete(java.lang.String jobId, java.lang.String taskID)Notify the TileWorker node that the tile task has been completedvoidquit()Tile cutoff point exitsvoidremoveListener(TileWorkerClient.WorkerConnectionStateListener listener)Remove the tile node connection status listener.voidsetConnectionInfo(TileWorkerInfo workerInfo)Sets the connection information.
-
-
-
Method Detail
-
setConnectionInfo
void setConnectionInfo(TileWorkerInfo workerInfo)
Sets the connection information.
- Parameters:
workerInfo- the connection information
-
getState
TileWorkerState getState()
Gets the child node state
- Returns:
-
addListener
void addListener(TileWorkerClient.WorkerConnectionStateListener listener)
Register the tiling node connection status listener.
- Parameters:
listener-- Since:
- 6.1.3
-
deployData
CompConnInfo deployData(JobBuildConfig config, JobDeployingInfo deployingInfo) throws TileWorkerClient.ConnectTileWorkerException
Deploy data.
- Parameters:
config- the configuration informationdeployingInfo-- Returns:
- Throws:
TileWorkerClient.ConnectTileWorkerException
-
deployJob
void deployJob(JobBuildConfig config) throws TileWorkerClient.ConnectTileWorkerException
Deploy a tiling job
- Parameters:
config-- Throws:
TileWorkerClient.ConnectTileWorkerException- Since:
- 6.1.3
-
addTask
void addTask(TileTask task) throws TileWorkerClient.ConnectTileWorkerException
Add a tile task
- Parameters:
task-- Throws:
TileWorkerClient.ConnectTileWorkerException- Since:
- 6.1.3
-
getInfo
TileWorkerInfo getInfo()
Returns the connection information of the tile node
- Returns:
- Since:
- 6.1.3
-
getId
java.lang.String getId()
Returns the id of the tile node.
- Returns:
- Since:
- 6.1.3
-
getTaskState
TileTaskState getTaskState(java.lang.String taskId)
Returns the execution state of a named tile task.
- Parameters:
taskId-- Returns:
- Since:
- 6.1.3
-
quit
void quit()
Tile cutoff point exits
- Since:
- 6.1.3
-
removeListener
void removeListener(TileWorkerClient.WorkerConnectionStateListener listener)
Remove the tile node connection status listener.
- Parameters:
listener-- Since:
- 6.1.3
-
notifyJobCompleted
boolean notifyJobCompleted(java.lang.String jobId)
Notifies the TileWorker node that the tiling task has been completed and can turn off some of the resources (eg thread, memory pool, etc.) for the application. The method is called byTileMaster- Parameters:
jobId-- Returns:
-
notifyJobTaskComplete
boolean notifyJobTaskComplete(java.lang.String jobId, java.lang.String taskID)Notify the TileWorker node that the tile task has been completed
- Parameters:
jobId-taskID-- Returns:
-
-