public class LocalTileWorkerClient extends java.lang.Object implements TileWorkerClient
TileWorkerClient.ConnectTileWorkerException, TileWorkerClient.WorkerConnectionStateListener
构造器和说明 |
---|
LocalTileWorkerClient() |
限定符和类型 | 方法和说明 |
---|---|
void |
addListener(TileWorkerClient.WorkerConnectionStateListener listener)
|
void |
addTask(TileTask task)
|
CompConnInfo |
deployData(JobBuildConfig config, JobDeployingInfo deployingInfo)
部署数据。
|
void |
deployJob(JobBuildConfig config)
|
java.lang.String |
getId()
|
TileWorkerInfo |
getInfo()
|
TileWorkerState |
getState()
|
TileTaskState |
getTaskState(java.lang.String taskId)
|
TileWorker |
getTileWorker() |
boolean |
notifyJobCompleted(java.lang.String jobId)
通知TileWorker节点,切图任务已经完成,可以把申请的一些资源(eg: 线程,内存池等)关掉.
|
boolean |
notifyJobTaskComplete(java.lang.String jobId, java.lang.String taskID)
通知TileWorker节点,切图任务已经完成
|
void |
quit()
|
void |
removeListener(TileWorkerClient.WorkerConnectionStateListener listener)
|
void |
setConnectionInfo(TileWorkerInfo workerInfo)
设置连接信息。
|
void |
setTileWorker(TileWorker value) |
public TileWorker getTileWorker()
public void setTileWorker(TileWorker value)
public TileWorkerState getState()
getState
在接口中 TileWorkerClient
public void addListener(TileWorkerClient.WorkerConnectionStateListener listener)
addListener
在接口中 TileWorkerClient
listener
-public void deployJob(JobBuildConfig config) throws TileWorkerClient.ConnectTileWorkerException
deployJob
在接口中 TileWorkerClient
config
-ConnectTileWorkerException
TileWorkerClient.ConnectTileWorkerException
public CompConnInfo deployData(JobBuildConfig config, JobDeployingInfo deployingInfo)
TileWorkerClient
部署数据。
deployData
在接口中 TileWorkerClient
config
- 配置信息public void addTask(TileTask task) throws TileWorkerClient.ConnectTileWorkerException
addTask
在接口中 TileWorkerClient
task
-ConnectTileWorkerException
TileWorkerClient.ConnectTileWorkerException
public TileWorkerInfo getInfo()
getInfo
在接口中 TileWorkerClient
public java.lang.String getId()
getId
在接口中 TileWorkerClient
public TileTaskState getTaskState(java.lang.String taskId)
getTaskState
在接口中 TileWorkerClient
taskId
-public void quit()
quit
在接口中 TileWorkerClient
public void removeListener(TileWorkerClient.WorkerConnectionStateListener listener)
removeListener
在接口中 TileWorkerClient
listener
-public void setConnectionInfo(TileWorkerInfo workerInfo)
TileWorkerClient
设置连接信息。
setConnectionInfo
在接口中 TileWorkerClient
workerInfo
- 连接信息public boolean notifyJobCompleted(java.lang.String jobId)
TileWorkerClient
TileMaster
调用notifyJobCompleted
在接口中 TileWorkerClient
public boolean notifyJobTaskComplete(java.lang.String jobId, java.lang.String taskID)
TileWorkerClient
通知TileWorker节点,切图任务已经完成
notifyJobTaskComplete
在接口中 TileWorkerClient