]> git.argeo.org Git - gpl/argeo-slc.git/blobdiff - runtime/org.argeo.slc.support.activemq/src/main/java/org/argeo/slc/jms/JmsSlcExecutionNotifier.java
Implement kill and process progress
[gpl/argeo-slc.git] / runtime / org.argeo.slc.support.activemq / src / main / java / org / argeo / slc / jms / JmsSlcExecutionNotifier.java
index 45db072b9be17450342dca5cc90c000eccc28939..7cb5906f4c24a08cddb775e785581e85a04d213a 100644 (file)
@@ -23,6 +23,8 @@ import javax.jms.Destination;
 import org.apache.commons.logging.Log;
 import org.apache.commons.logging.LogFactory;
 import org.argeo.slc.UnsupportedException;
+import org.argeo.slc.execution.ExecutionProcess;
+import org.argeo.slc.execution.ExecutionStep;
 import org.argeo.slc.msg.process.SlcExecutionStatusRequest;
 import org.argeo.slc.msg.process.SlcExecutionStepsRequest;
 import org.argeo.slc.process.SlcExecution;
@@ -31,6 +33,7 @@ import org.argeo.slc.process.SlcExecutionStep;
 import org.springframework.jms.JmsException;
 import org.springframework.jms.core.JmsTemplate;
 
+@SuppressWarnings("deprecation")
 public class JmsSlcExecutionNotifier implements SlcExecutionNotifier {
        private final static Log log = LogFactory
                        .getLog(JmsSlcExecutionNotifier.class);
@@ -41,15 +44,15 @@ public class JmsSlcExecutionNotifier implements SlcExecutionNotifier {
 
        // private Destination updateStatusDestination;
 
-       public void updateStatus(SlcExecution slcExecution, String oldStatus,
+       public void updateStatus(ExecutionProcess slcExecution, String oldStatus,
                        String newStatus) {
                SlcExecutionStatusRequest req = new SlcExecutionStatusRequest(
                                slcExecution.getUuid(), newStatus);
                convertAndSend(req);
        }
 
-       public void addSteps(SlcExecution slcExecution,
-                       List<SlcExecutionStep> additionalSteps) {
+       public void addSteps(ExecutionProcess slcExecution,
+                       List<ExecutionStep> additionalSteps) {
                SlcExecutionStepsRequest req = new SlcExecutionStepsRequest(
                                slcExecution.getUuid(), additionalSteps);
                convertAndSend(req);