com.supermap.services.components.impl
Class LocalTileWorkerClient
- java.lang.Object
-
- com.supermap.services.components.impl.LocalTileWorkerClient
-
- All Implemented Interfaces:
- TileWorkerClient
public class LocalTileWorkerClient extends java.lang.Object implements TileWorkerClient
- Since:
- 7.0.1
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.supermap.services.components.TileWorkerClient
TileWorkerClient.ConnectTileWorkerException, TileWorkerClient.WorkerConnectionStateListener
-
-
Constructor Summary
Constructors Constructor and Description LocalTileWorkerClient()
-
Method Summary
Methods Modifier and Type Method and Description voidaddListener(TileWorkerClient.WorkerConnectionStateListener listener)voidaddTask(TileTask task)CompConnInfodeployData(JobBuildConfig config, JobDeployingInfo deployingInfo)Deploy data.voiddeployJob(JobBuildConfig config)java.lang.StringgetId()TileWorkerInfogetInfo()TileWorkerStategetState()TileTaskStategetTaskState(java.lang.String taskId)TileWorkergetTileWorker()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()voidremoveListener(TileWorkerClient.WorkerConnectionStateListener listener)voidsetConnectionInfo(TileWorkerInfo workerInfo)Sets the connection information.voidsetTileWorker(TileWorker value)
-
-
-
Method Detail
-
getTileWorker
public TileWorker getTileWorker()
-
setTileWorker
public void setTileWorker(TileWorker value)
-
getState
public TileWorkerState getState()
- Specified by:
getStatein interfaceTileWorkerClient- Returns:
- Since:
- 7.0.1
-
addListener
public void addListener(TileWorkerClient.WorkerConnectionStateListener listener)
- Specified by:
addListenerin interfaceTileWorkerClient- Parameters:
listener-- Since:
- 7.0.1
-
deployJob
public void deployJob(JobBuildConfig config) throws TileWorkerClient.ConnectTileWorkerException
- Specified by:
deployJobin interfaceTileWorkerClient- Parameters:
config-- Throws:
ConnectTileWorkerExceptionTileWorkerClient.ConnectTileWorkerException- Since:
- 7.0.1
-
deployData
public CompConnInfo deployData(JobBuildConfig config, JobDeployingInfo deployingInfo)
Description copied from interface:TileWorkerClientDeploy data.
- Specified by:
deployDatain interfaceTileWorkerClient- Parameters:
config- the configuration information- Returns:
-
addTask
public void addTask(TileTask task) throws TileWorkerClient.ConnectTileWorkerException
- Specified by:
addTaskin interfaceTileWorkerClient- Parameters:
task-- Throws:
ConnectTileWorkerExceptionTileWorkerClient.ConnectTileWorkerException- Since:
- 7.0.1
-
getInfo
public TileWorkerInfo getInfo()
- Specified by:
getInfoin interfaceTileWorkerClient- Returns:
- Since:
- 7.0.1
-
getId
public java.lang.String getId()
- Specified by:
getIdin interfaceTileWorkerClient- Returns:
- Since:
- 7.0.1
-
getTaskState
public TileTaskState getTaskState(java.lang.String taskId)
- Specified by:
getTaskStatein interfaceTileWorkerClient- Parameters:
taskId-- Returns:
- Since:
- 7.0.1
-
quit
public void quit()
- Specified by:
quitin interfaceTileWorkerClient- Since:
- 7.0.1
-
removeListener
public void removeListener(TileWorkerClient.WorkerConnectionStateListener listener)
- Specified by:
removeListenerin interfaceTileWorkerClient- Parameters:
listener-- Since:
- 7.0.1
-
setConnectionInfo
public void setConnectionInfo(TileWorkerInfo workerInfo)
Description copied from interface:TileWorkerClientSets the connection information.
- Specified by:
setConnectionInfoin interfaceTileWorkerClient- Parameters:
workerInfo- the connection information
-
notifyJobCompleted
public boolean notifyJobCompleted(java.lang.String jobId)
Description copied from interface:TileWorkerClientNotifies 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- Specified by:
notifyJobCompletedin interfaceTileWorkerClient- Returns:
-
notifyJobTaskComplete
public boolean notifyJobTaskComplete(java.lang.String jobId, java.lang.String taskID)Description copied from interface:TileWorkerClientNotify the TileWorker node that the tile task has been completed
- Specified by:
notifyJobTaskCompletein interfaceTileWorkerClient- Returns:
-
-