コード例 #1
0
 public void fireAfterSolveEvent(SolverJob<?> job, ChallengeSolver<?> solver) {
   synchronized (job) {
     job.getLogger().info("Solver " + solver + " finished job " + job);
     job.notifyAll();
   }
   eventSender.fireEvent(
       new ChallengeResponseEvent(this, ChallengeResponseEvent.Type.SOLVER_END, solver, job));
 }
コード例 #2
0
 private void fireJobDone(SolverJob<?> job) {
   eventSender.fireEvent(
       new ChallengeResponseEvent(this, ChallengeResponseEvent.Type.JOB_DONE, job));
 }
コード例 #3
0
 private void fireNewJobEvent(SolverJob<?> job) {
   eventSender.fireEvent(
       new ChallengeResponseEvent(this, ChallengeResponseEvent.Type.NEW_JOB, job));
 }
コード例 #4
0
 public void fireBeforeSolveEvent(SolverJob<?> job, ChallengeSolver<?> solver) {
   eventSender.fireEvent(
       new ChallengeResponseEvent(this, ChallengeResponseEvent.Type.SOLVER_START, solver, job));
 }
コード例 #5
0
 public <E> void fireNewAnswerEvent(SolverJob<E> job, AbstractResponse<E> abstractResponse) {
   eventSender.fireEvent(
       new ChallengeResponseEvent(
           this, ChallengeResponseEvent.Type.JOB_ANSWER, abstractResponse, job));
 }