Changeset 1155 for DCWoRMS/branches/coolemall/src/schedframe
- Timestamp:
- 07/31/13 17:15:13 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
DCWoRMS/branches/coolemall/src/schedframe/scheduling/tasks/Job.java
r1150 r1155 6 6 import org.qcg.broker.schemas.resreqs.Workflow; 7 7 import org.qcg.broker.schemas.resreqs.types.TaskStatesName; 8 9 import gridsim.dcworms.DCWormsTags; 8 10 9 11 import java.io.StringWriter; … … 142 144 Task t = tasks.get(i); 143 145 isForAll = (t.getStatus() == baseStatus); 146 switch(t.getStatus()){ 147 case (int) BrokerConstants.TASK_STATUS_RUNNING:{ 148 return (int)BrokerConstants.JOB_STATUS_ACTIVE; 149 } 150 } 144 151 } 145 152 146 153 if(isForAll && baseStatus == BrokerConstants.TASK_STATUS_FINISHED) 147 154 return (int)BrokerConstants.JOB_STATUS_FINISHED; 155 else if( baseStatus == BrokerConstants.TASK_STATUS_RUNNING){ 156 return (int)BrokerConstants.JOB_STATUS_ACTIVE; 157 } 148 158 149 159 return status;
Note: See TracChangeset
for help on using the changeset viewer.