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