Changeset 3161 for trunk/openmole/core/org.openmole.core.workflow.implementation/src/main/java/org/openmole/core/workflow/implementation/mole/execution/MoleExecution.java
- Timestamp:
- 03/06/10 15:42:39 (2 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
trunk/openmole/core/org.openmole.core.workflow.implementation/src/main/java/org/openmole/core/workflow/implementation/mole/execution/MoleExecution.java
r3147 r3161 17 17 package org.openmole.core.workflow.implementation.mole.execution; 18 18 19 import com.db4o.CorruptionException; 19 20 import java.util.ArrayList; 20 21 import java.util.Collection; 21 22 import java.util.Collections; 23 import java.util.LinkedList; 22 24 import java.util.Map; 23 25 import java.util.TreeMap; … … 212 214 getSubmiter().interrupt(); 213 215 214 for(IMoleJob moleJob : allMoleJobs()) {216 for(IMoleJob moleJob : getAllMoleJobsInternal()) { 215 217 moleJob.cancel(); 216 218 } … … 226 228 } 227 229 228 public Iterable<IMoleJob> allMoleJobs() { 230 231 private Iterable<IMoleJob> getAllMoleJobsInternal() { 229 232 return inProgress.keySet(); 230 233 } 231 234 235 @Override 236 public synchronized Iterable<IMoleJob> getAllMoleJobs() { 237 Collection<IMoleJob> ret = new LinkedList<IMoleJob>(); 238 239 for(IMoleJob moleJob : getAllMoleJobsInternal()) { 240 ret.add(moleJob); 241 } 242 243 return ret; 244 } 232 245 233 246 @Override





