public synchronized void start(){
  if (workers.size() > 0) {
    throw new RuntimeException("Start called while there are workers" + " still running");
  }
  for (int i=0; i < numWorkers; i++) {
    Worker worker=new Worker<Job>(workerName,jobsToRun,this);
    workers.add(worker);
  }
  for (  Worker w : workers) {
    try {
      Thread.sleep(100);
    }
 catch (    Exception e) {
      LOG.error(e);
    }
    w.start();
  }
}

public synchronized void start ( ) { if ( workers . size ( ) > 0 ) { throw new RuntimeException ( "Start called while there are workers" + " still running" ) ; } for ( int i = 0 ; i < numWorkers ; i ++ ) { Worker worker = new Worker < Job > ( workerName , jobsToRun , this ) ; workers . add ( worker ) ; } for ( Worker w : workers ) { try { Thread . sleep ( 100 ) ; } catch ( Exception e ) { LOG . error ( e ) ; } w . start ( ) ; } }
kick off the worker threads that run a job .
