Changes between Version 4 and Version 5 of ComputeStartExample7
- Timestamp:
- 2010-11-11T15:01:48+01:00 (14 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
ComputeStartExample7
v4 v5 37 37 {{{ 38 38 public void checkStepStatus() 39 { 40 Future<RemoteResult> future = exec.submit(new RemoteLoggingReader(log_location)); 39 { 40 Future<RemoteResult> future = exec.submit(new RemoteLoggingReader(log_location)); 41 RemoteResult back = null; 41 42 42 RemoteResult back = null; 43 44 try 45 { 46 back = future.get(); 47 } 48 43 try 44 { 45 back = future.get(); 46 } 49 47 ... 50 48 51 49 String logging = new String(back.getData()); 52 50 53 54 55 51 summary.scripts_started = 0; 52 summary.scripts_finished = 0; 53 summary.scripts_all = currentStep.getNumberOfScripts(); 56 54 57 58 59 55 for (int i = 0; i < summary.scripts_all; i++) 56 { 57 String script_id = currentStep.getScript(i).getID(); 60 58 61 62 59 int index_started = logging.indexOf(script_id + _STARTED); 60 int index_finished = logging.indexOf(script_id + _FINISHED); 63 61 64 65 66 62 if (index_started > 0) summary.scripts_started++; 63 if (index_finished > 0) summary.scripts_finished++; 64 } 67 65 68 66 if (summary.scripts_finished == summary.scripts_all) 69 67 isStepFinished = true; 70 68 ... 71 72 69 }}} 73 70