Changes between Version 4 and Version 5 of ComputeStartExample7


Ignore:
Timestamp:
2010-11-11T15:01:48+01:00 (14 years ago)
Author:
george
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • ComputeStartExample7

    v4 v5  
    3737{{{
    3838public 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;
    4142
    42         RemoteResult back = null;
    43 
    44         try
    45         {
    46             back = future.get();
    47         }
    48        
     43        try
     44        {
     45        back = future.get();
     46    }
    4947        ...
    5048
    51         String logging = new String(back.getData());
     49    String logging = new String(back.getData());
    5250
    53         summary.scripts_started = 0;
    54         summary.scripts_finished = 0;
    55         summary.scripts_all = currentStep.getNumberOfScripts();
     51        summary.scripts_started = 0;
     52        summary.scripts_finished = 0;
     53        summary.scripts_all = currentStep.getNumberOfScripts();
    5654
    57         for (int i = 0; i < summary.scripts_all; i++)
    58         {
    59             String script_id = currentStep.getScript(i).getID();
     55        for (int i = 0; i < summary.scripts_all; i++)
     56        {
     57                String script_id = currentStep.getScript(i).getID();
    6058
    61             int index_started = logging.indexOf(script_id + _STARTED);
    62             int index_finished = logging.indexOf(script_id + _FINISHED);
     59                int index_started = logging.indexOf(script_id + _STARTED);
     60                int index_finished = logging.indexOf(script_id + _FINISHED);
    6361
    64             if (index_started > 0) summary.scripts_started++;
    65             if (index_finished > 0) summary.scripts_finished++;
    66         }
     62                if (index_started > 0) summary.scripts_started++;
     63                if (index_finished > 0) summary.scripts_finished++;
     64    }
    6765
    6866        if (summary.scripts_finished == summary.scripts_all)
    6967            isStepFinished = true;
    7068       ...
    71 
    7269}}}
    7370