1 package org
.argeo
.slc
.core
.execution
;
3 import java
.util
.ArrayList
;
6 import org
.argeo
.slc
.execution
.ExecutionModulesListener
;
7 import org
.argeo
.slc
.execution
.ExecutionModulesManager
;
8 import org
.argeo
.slc
.process
.SlcExecution
;
9 import org
.argeo
.slc
.process
.SlcExecutionNotifier
;
11 public abstract class AbstractExecutionModulesManager
implements
12 ExecutionModulesManager
{
13 private List
<SlcExecutionNotifier
> slcExecutionNotifiers
= new ArrayList
<SlcExecutionNotifier
>();
14 private List
<ExecutionModulesListener
> executionModulesListeners
= new ArrayList
<ExecutionModulesListener
>();
16 private ThreadGroup processesThreadGroup
= new ThreadGroup("Processes");
18 public void process(SlcExecution slcExecution
) {
19 new ProcessThread(this, slcExecution
).start();
22 public void setSlcExecutionNotifiers(
23 List
<SlcExecutionNotifier
> slcExecutionNotifiers
) {
24 this.slcExecutionNotifiers
= slcExecutionNotifiers
;
27 public List
<SlcExecutionNotifier
> getSlcExecutionNotifiers() {
28 return slcExecutionNotifiers
;
31 public ThreadGroup
getProcessesThreadGroup() {
32 return processesThreadGroup
;
35 public List
<ExecutionModulesListener
> getExecutionModulesListeners() {
36 return executionModulesListeners
;
39 public void setExecutionModulesListeners(
40 List
<ExecutionModulesListener
> executionModulesListeners
) {
41 this.executionModulesListeners
= executionModulesListeners
;