@Override
public JobInstance getJobInstance(Long instanceId) {
JobInstance jobInstance = null;
try {
GetJobInstanceReq request = JobRepositoryRpcFactory.buildGetJobInstanceReq(instanceId);
GetJobInstanceRes response = (GetJobInstanceRes) getAppmasterScOperations().doMindRequest(request);
jobInstance = JobRepositoryRpcFactory.convertJobInstanceType(response.jobInstance);
} catch (Exception e) {
throw convertException(e);
}
return jobInstance;