X-Git-Url: http://git.argeo.org/?a=blobdiff_plain;f=eclipse%2Fplugins%2Forg.argeo.slc.client.ui%2Fsrc%2Fmain%2Fjava%2Forg%2Fargeo%2Fslc%2Fclient%2Fui%2Fcontrollers%2FProcessController.java;h=7d0a76ad552d40c05ac539935481e0a1961d2ce3;hb=da80480f09f8efc5e0278ed992e17e586b0a0e62;hp=20a769c6986d9723c409e3a837ccf937f743a594;hpb=918580bf6039346b6bd6891d475c77487a702d4b;p=gpl%2Fargeo-slc.git diff --git a/eclipse/plugins/org.argeo.slc.client.ui/src/main/java/org/argeo/slc/client/ui/controllers/ProcessController.java b/eclipse/plugins/org.argeo.slc.client.ui/src/main/java/org/argeo/slc/client/ui/controllers/ProcessController.java index 20a769c69..7d0a76ad5 100644 --- a/eclipse/plugins/org.argeo.slc.client.ui/src/main/java/org/argeo/slc/client/ui/controllers/ProcessController.java +++ b/eclipse/plugins/org.argeo.slc.client.ui/src/main/java/org/argeo/slc/client/ui/controllers/ProcessController.java @@ -15,10 +15,8 @@ import org.argeo.slc.jcr.SlcJcrConstants; import org.argeo.slc.jcr.SlcJcrUtils; import org.argeo.slc.jcr.SlcNames; import org.argeo.slc.jcr.execution.JcrExecutionProcess; -import org.argeo.slc.process.SlcExecution; import org.argeo.slc.runtime.SlcAgent; import org.argeo.slc.runtime.SlcAgentFactory; -import org.argeo.slc.services.SlcExecutionService; /** * We use a separate class (not in UI components) so that it can be a singleton @@ -26,17 +24,8 @@ import org.argeo.slc.services.SlcExecutionService; */ public class ProcessController { private final static Log log = LogFactory.getLog(ProcessController.class); - private SlcExecutionService slcExecutionService; private Map agentFactories = new HashMap(); - public void execute(SlcAgent agent, SlcExecution slcExecution) { - slcExecutionService.newExecution(slcExecution); - agent.process(slcExecution); - if (log.isDebugEnabled()) - log.debug("SlcExecution " + slcExecution.getUuid() - + " launched on Agent " + agent.toString()); - } - public void process(Node processNode) { JcrExecutionProcess process = new JcrExecutionProcess(processNode); try { @@ -75,10 +64,6 @@ public class ProcessController { } } - public void setSlcExecutionService(SlcExecutionService slcExecutionService) { - this.slcExecutionService = slcExecutionService; - } - public synchronized void register(SlcAgentFactory agentFactory, Map properties) { String path = properties.get(SlcJcrConstants.PROPERTY_PATH);