Changeset 555 for DCWoRMS/trunk/src/schedframe/scheduling
- Timestamp:
- 11/06/12 12:52:07 (12 years ago)
- Location:
- DCWoRMS/trunk/src/schedframe/scheduling
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
DCWoRMS/trunk/src/schedframe/scheduling/plan/AllocationInterface.java
r477 r555 111 111 public <ProviderInfo> void setProviderInfo(ProviderInfoInterface<ProviderInfo> providerInfo); 112 112 113 public void set SpecificResources(Map<ResourceUnitName, ResourceUnit> choosenResources);113 public void setRequestedResources(Map<ResourceUnitName, ResourceUnit> choosenResources); 114 114 115 115 public Map<ResourceUnitName, ResourceUnit> getRequestedResources(); … … 119 119 public String getProviderName(); 120 120 121 public boolean isProcessing();121 //public boolean isProcessing(); 122 122 } -
DCWoRMS/trunk/src/schedframe/scheduling/plan/impl/Allocation.java
r477 r555 141 141 142 142 protected Map<ResourceUnitName, ResourceUnit> requestedResources; 143 protected boolean isProcessing = false;143 //protected boolean isProcessing = false; 144 144 protected String providerName; 145 145 146 146 @Override 147 public void set SpecificResources(147 public void setRequestedResources( 148 148 Map<ResourceUnitName, ResourceUnit> choosenResources) { 149 149 requestedResources = choosenResources; 150 ResourceManagerUtils.setPendingResources(choosenResources); 151 ProcessingElements processingElements = (ProcessingElements)requestedResources.get(StandardResourceUnitName.PE); 152 if(processingElements != null){ 153 isProcessing = true; 154 } 150 if(choosenResources != null){ 151 ResourceManagerUtils.setPendingResources(choosenResources); 152 /*ProcessingElements processingElements = (ProcessingElements)requestedResources.get(StandardResourceUnitName.PE); 153 if(processingElements != null){ 154 isProcessing = true; 155 } */ 156 } 157 155 158 } 156 159 … … 160 163 } 161 164 162 public boolean isProcessing(){165 /*public boolean isProcessing(){ 163 166 return isProcessing; 164 } 167 }*/ 165 168 166 169 @Override -
DCWoRMS/trunk/src/schedframe/scheduling/policy/local/LocalManagementSystem.java
r497 r555 198 198 199 199 AllocationInterface<?> allocation = allocations.get(j); 200 if (allocation. isProcessing()) {200 if (allocation.getRequestedResources() == null || allocation.getRequestedResources().size() > 0) { 201 201 ExecTask exec = (ExecTask) task; 202 202 executeTask(exec, allocation.getRequestedResources()); … … 217 217 Executable exec = (Executable)task; 218 218 boolean allocationStatus = getAllocationManager().allocateResources(choosenResources); 219 if(allocationStatus == false) 219 if(allocationStatus == false){ 220 log.error("Task requires more resources than is availiable at this moment."); 220 221 return; 222 } 223 221 224 removeFromQueue(task); 222 225
Note: See TracChangeset
for help on using the changeset viewer.