< prev index next >

src/com/sun/javatest/exec/MonitorState.java

Print this page




 308                     public void run() {
 309                         MonitorState.Dispatcher.this.notifyComplete(allOk);
 310                     }   // run()
 311                 };      // end anon. class
 312 
 313                 EventQueue.invokeLater(cmd);
 314             }
 315             else {      // now on event thread
 316                 for (int i = 0; i < obs.length; i++)
 317                     obs[i].finished(allOk);
 318             }
 319         }
 320     }
 321 
 322     // instance vars for MonitorState
 323     private Harness harness;
 324     private boolean running;
 325     private Observer[] obs = new Observer[0];
 326     private volatile int[] stats;
 327 
 328     private ArrayList<TestResult> runningTests = new ArrayList(5);
 329     private final Object vLock = new Object();
 330 
 331     /**
 332      * Basis for the elapsed time.
 333      */
 334     private long startTime;
 335     private long finishTime;    // only used if startTime != -1 and finishTime >= 0
 336     private Dispatcher dispatcher = new Dispatcher();
 337 }
 338 


 308                     public void run() {
 309                         MonitorState.Dispatcher.this.notifyComplete(allOk);
 310                     }   // run()
 311                 };      // end anon. class
 312 
 313                 EventQueue.invokeLater(cmd);
 314             }
 315             else {      // now on event thread
 316                 for (int i = 0; i < obs.length; i++)
 317                     obs[i].finished(allOk);
 318             }
 319         }
 320     }
 321 
 322     // instance vars for MonitorState
 323     private Harness harness;
 324     private boolean running;
 325     private Observer[] obs = new Observer[0];
 326     private volatile int[] stats;
 327 
 328     private ArrayList<TestResult> runningTests = new ArrayList<>(5);
 329     private final Object vLock = new Object();
 330 
 331     /**
 332      * Basis for the elapsed time.
 333      */
 334     private long startTime;
 335     private long finishTime;    // only used if startTime != -1 and finishTime >= 0
 336     private Dispatcher dispatcher = new Dispatcher();
 337 }
 338 
< prev index next >