@Override public void onJobLaunch(JobExecutionDriver jobDriver) { if (this.jobDriver != null) { throw new IllegalStateException("OnJobLaunch called when a job was already running."); } super.onJobLaunch(jobDriver); this.lock.lock(); try { this.running = true; this.jobDriver = jobDriver; this.runningStateCondition.signal(); } finally { this.lock.unlock(); } } }
@Override public void onJobLaunch(JobExecutionDriver jobDriver) { super.onJobLaunch(jobDriver); try { jobDrivers.offer(jobDriver, 5, TimeUnit.SECONDS); } catch (InterruptedException e) { instance.getLog().error("Offer interrupted."); } } });
@Override public void onJobLaunch(JobExecutionDriver jobDriver) { super.onJobLaunch(jobDriver); try { jobDrivers.offer(jobDriver, 5, TimeUnit.SECONDS); } catch (InterruptedException e) { instance.getLog().error("Offer interrupted."); } } });
@Override public void onJobLaunch(JobExecutionDriver jobDriver) { super.onJobLaunch(jobDriver); try { jobDrivers.offer(jobDriver, 5, TimeUnit.SECONDS); } catch (InterruptedException e) { instance.getLog().error("Offer interrupted."); } } });
@Override public void onJobLaunch(JobExecutionDriver jobDriver) { super.onJobLaunch(jobDriver); try { jobDrivers.offer(jobDriver, 5, TimeUnit.SECONDS); } catch (InterruptedException e) { instance.getLog().error("Offer interrupted."); } } });
@Override public void onJobLaunch(JobExecutionDriver jobDriver) { if (this.jobDriver != null) { throw new IllegalStateException("OnJobLaunch called when a job was already running."); } super.onJobLaunch(jobDriver); this.lock.lock(); try { this.running = true; this.jobDriver = jobDriver; this.runningStateCondition.signal(); } finally { this.lock.unlock(); } } }