aborgatin commented on a change in pull request #489: GRIFFIN-240 Return 
JobInstanceBean in response to a call Trigger job by id
URL: https://github.com/apache/griffin/pull/489#discussion_r266876882
 
 

 ##########
 File path: 
service/src/main/java/org/apache/griffin/core/job/CountDownTriggerListener.java
 ##########
 @@ -0,0 +1,49 @@
+package org.apache.griffin.core.job;
+
+import org.quartz.JobExecutionContext;
+import org.quartz.Trigger;
+import org.quartz.TriggerListener;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
+import java.util.concurrent.CountDownLatch;
+
+public class CountDownTriggerListener implements TriggerListener {
+    private static final Logger LOGGER = LoggerFactory
+            .getLogger(JobServiceImpl.class);
+    private CountDownLatch latch;
+    private String name;
+
+
+    public CountDownTriggerListener(CountDownLatch latch, String name) {
+        this.latch = latch;
+        this.name = name;
+    }
+
+    @Override
+    public String getName() {
+        return name;
+    }
+
+    @Override
+    public void triggerFired(Trigger trigger, JobExecutionContext context) {
+        LOGGER.info("CountDownTriggerListener triggerFired");
 
 Review comment:
   I removed it

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to