private void addEvent ( JobID jobID , AbstractEvent event ) { synchronized ( this . collectedEvents ) { List < AbstractEvent > eventList = this . collectedEvents . get ( jobID ) ; if ( eventList == null ) { eventList = new ArrayList < AbstractEvent > ( ) ; this . collectedEvents . put ( jobID , eventList ) ; } eventList . add ( event ) ; } }
Adds an event to the job s event list .