public interface TileWorkerClient
TIleWorker 's proxy class on the TileMaster side.
Modifier and Type | Interface and Description |
---|---|
static class |
TileWorkerClient.ConnectTileWorkerException
Tile node connection exception
|
static interface |
TileWorkerClient.WorkerConnectionStateListener
The tile cutoff point connection status listener.
|
Modifier and Type | Method and Description |
---|---|
void |
addListener(TileWorkerClient.WorkerConnectionStateListener listener)
Register the tiling node connection status listener.
|
void |
addTask(TileTask task)
Add a tile task
|
CompConnInfo |
deployData(JobBuildConfig config, JobDeployingInfo deployingInfo)
Deploy data.
|
void |
deployJob(JobBuildConfig config)
Deploy a tiling job
|
java.lang.String |
getId()
Returns the id of the tile node.
|
TileWorkerInfo |
getInfo()
Returns the connection information of the tile node
|
TileWorkerState |
getState()
Gets the child node state
|
TileTaskState |
getTaskState(java.lang.String taskId)
Returns the execution state of a named tile task.
|
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.
|
boolean |
notifyJobTaskComplete(java.lang.String jobId, java.lang.String taskID)
Notify the TileWorker node that the tile task has been completed
|
void |
quit()
Tile cutoff point exits
|
void |
removeListener(TileWorkerClient.WorkerConnectionStateListener listener)
Remove the tile node connection status listener.
|
void |
setConnectionInfo(TileWorkerInfo workerInfo)
Sets the connection information.
|
void setConnectionInfo(TileWorkerInfo workerInfo)
Sets the connection information.
workerInfo
- the connection informationTileWorkerState getState()
Gets the child node state
void addListener(TileWorkerClient.WorkerConnectionStateListener listener)
Register the tiling node connection status listener.
listener
-CompConnInfo deployData(JobBuildConfig config, JobDeployingInfo deployingInfo) throws TileWorkerClient.ConnectTileWorkerException
Deploy data.
config
- the configuration informationdeployingInfo
-TileWorkerClient.ConnectTileWorkerException
void deployJob(JobBuildConfig config) throws TileWorkerClient.ConnectTileWorkerException
Deploy a tiling job
config
-TileWorkerClient.ConnectTileWorkerException
void addTask(TileTask task) throws TileWorkerClient.ConnectTileWorkerException
Add a tile task
task
-TileWorkerClient.ConnectTileWorkerException
TileWorkerInfo getInfo()
Returns the connection information of the tile node
java.lang.String getId()
Returns the id of the tile node.
TileTaskState getTaskState(java.lang.String taskId)
Returns the execution state of a named tile task.
taskId
-void quit()
Tile cutoff point exits
void removeListener(TileWorkerClient.WorkerConnectionStateListener listener)
Remove the tile node connection status listener.
listener
-boolean notifyJobCompleted(java.lang.String jobId)
TileMaster
jobId
-boolean notifyJobTaskComplete(java.lang.String jobId, java.lang.String taskID)
Notify the TileWorker node that the tile task has been completed
jobId
-taskID
-