Show
Ignore:
Timestamp:
03/06/10 15:42:39 (2 years ago)
Author:
romain.reuillon
Message:

ui enhancement

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  
    1717package org.openmole.core.workflow.implementation.mole.execution; 
    1818 
     19import com.db4o.CorruptionException; 
    1920import java.util.ArrayList; 
    2021import java.util.Collection; 
    2122import java.util.Collections; 
     23import java.util.LinkedList; 
    2224import java.util.Map; 
    2325import java.util.TreeMap; 
     
    212214        getSubmiter().interrupt(); 
    213215 
    214         for(IMoleJob moleJob : allMoleJobs()) { 
     216        for(IMoleJob moleJob : getAllMoleJobsInternal()) { 
    215217            moleJob.cancel(); 
    216218        } 
     
    226228    } 
    227229 
    228     public Iterable<IMoleJob> allMoleJobs() { 
     230 
     231    private Iterable<IMoleJob> getAllMoleJobsInternal() { 
    229232        return inProgress.keySet(); 
    230233    } 
    231234 
     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    } 
    232245 
    233246    @Override 

logo cemagref

logo iscpif

logo lifegrid

logo region auvergne

logo patres project