@ Override public List < SimulatorEvent > accept ( SimulatorEvent event ) { if ( LOG . isDebugEnabled ( ) ) { LOG . debug ( "Accepted event " + event ) ; } if ( event instanceof HeartbeatEvent ) { return processHeartbeatEvent ( ( HeartbeatEvent ) event ) ; } else if ( event instanceof TaskAttemptCompletionEvent ) { return processTaskAttemptCompletionEvent ( ( TaskAttemptCompletionEvent ) event ) ; } else { throw new IllegalArgumentException ( "Unhandled event " + event ) ; } }
Processes a simulation event .