void update ( JobStatus status ) { this . status = status ; try { this . counters = running . getCounters ( ) ; this . completed = running . isComplete ( ) ; this . successful = running . isSuccessful ( ) ; this . mapProgress = running . mapProgress ( ) ; this . reduceProgress = running . reduceProgress ( ) ; // running.getTaskCompletionEvents(fromEvent); } catch ( IOException ioe ) { ioe . printStackTrace ( ) ; } this . completedMaps = ( int ) ( this . totalMaps * this . mapProgress ) ; this . completedReduces = ( int ) ( this . totalReduces * this . reduceProgress ) ; }
Update this job status according to the given JobStatus