- Timestamp:
- 06/05/14 15:24:38 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
DCWoRMS/branches/coolemall/src/schedframe/scheduling/manager/tasks/AbstractJobRegistry.java
r1362 r1374 11 11 import schedframe.resources.units.ResourceUnit; 12 12 import schedframe.resources.units.ResourceUnitName; 13 import schedframe.scheduling.manager.resources.utils.ResourceManagerUtils; 13 14 import schedframe.scheduling.tasks.Job; 14 15 import schedframe.scheduling.tasks.JobInterface; … … 65 66 public List<JobInterface<?>> getJobs(){ 66 67 List<JobInterface<?>> jobList = new ArrayList<JobInterface<?>>(); 67 for(String jobId: jobs.keySet()) {68 for(String jobId: jobs.keySet()) { 68 69 jobList.add(jobs.get(jobId)); 69 70 } … … 74 75 List<JobInterface<?>> jobList = new ArrayList<JobInterface<?>>(); 75 76 synchronized (jobs) { 76 for(String jobId: jobs.keySet()){77 for(String jobId: jobs.keySet()){ 77 78 JobInterface<?> job = jobs.get(jobId); 78 79 if (job.getStatus() == status) { … … 90 91 return false; 91 92 }else{ 93 try { 94 execTask.setStatus(DCWormsTags.PAUSING); 95 } catch (Exception e) { 96 // TODO Auto-generated catch block 97 e.printStackTrace(); 98 } 92 99 String[] ids = new String[2]; 93 100 ids[0] = new String(jobId); … … 116 123 return false; 117 124 }else{ 125 try { 126 execTask.setStatus(DCWormsTags.IN_MIGRATION); 127 } catch (Exception e) { 128 return false; 129 } 130 if(choosenResources != null){ 131 ResourceManagerUtils.setPendingResources(choosenResources); 132 } 118 133 Object[] data = new Object[3]; 119 134 data[0] = new String(jobId);
Note: See TracChangeset
for help on using the changeset viewer.