private boolean isMatchingJobId ( JobID jobId ) { if ( isStandalone ) { // Requests to remote JT must hold exact attempt id. return this . jobId . equals ( jobId ) ; } else { // Local JT serves as translator between job id and job attempt id. return this . jobId . equals ( getMainJobID ( jobId ) ) ; } }
Check if given id matches job id of this JT .