Method description
Obtains status details of a task based on the job ID and task name.
Parameter description
| Parameter | Type | Description |
|---|---|---|
| jobId | String | Job ID |
| taskName | String | Name of a task |
Response description
If the call succeeds, a GetTaskResponse instance is returned. You can use the getTask() method of this instance to obtain the Task object.
If a failure occurs, a ClientException is thrown.
Sample code
try{GetTaskResponse response = client.getTask("job-0101010299123","Find");//SucceededTask task = response.getTask();}catch(ClientException e){e.printStackTrace();// Failed}