/** * Called when a job is completed. Insert a {@link JobCompleteEvent} into the * {@link SimulatorEventQueue}. This event will be picked up by * {@link SimulatorJobClient}, which will in turn decide whether the * simulation is done. * @param jobStatus final status of a job, SUCCEEDED or FAILED * @param timestamp time stamp when the job is completed */ void markCompletedJob(JobStatus jobStatus, long timestamp) { queue.add(new JobCompleteEvent(jc, timestamp, jobStatus, this)); }