1 package org
.argeo
.slc
.client
.ui
.controllers
;
3 import org
.apache
.commons
.logging
.Log
;
4 import org
.apache
.commons
.logging
.LogFactory
;
5 import org
.argeo
.slc
.process
.SlcExecution
;
6 import org
.argeo
.slc
.runtime
.SlcAgent
;
7 import org
.argeo
.slc
.services
.SlcExecutionService
;
9 public class ProcessController
{
10 private final static Log log
= LogFactory
.getLog(ProcessController
.class);
11 private SlcExecutionService slcExecutionService
;
13 public void execute(SlcAgent agent
, SlcExecution slcExecution
) {
14 slcExecutionService
.newExecution(slcExecution
);
15 agent
.runSlcExecution(slcExecution
);
16 if (log
.isDebugEnabled())
17 log
.debug("SlcExcution " + slcExecution
.getUuid()
18 + " launched on Agent " + agent
.toString());
21 public void setSlcExecutionService(SlcExecutionService slcExecutionService
) {
22 this.slcExecutionService
= slcExecutionService
;