public void run() throws Exception {
  Logger log=LoggerFactory.getLogger(RemoteServerExample.class);
  SchedulerFactory sf=new StdSchedulerFactory();
  Scheduler sched=sf.getScheduler();
  log.info("------- Initialization Complete -----------");
  log.info("------- (Not Scheduling any Jobs - relying on a remote client to schedule jobs --");
  log.info("------- Starting Scheduler ----------------");
  sched.start();
  log.info("------- Started Scheduler -----------------");
  log.info("------- Waiting ten minutes... ------------");
  try {
    Thread.sleep(600L * 1000L);
  }
 catch (  Exception e) {
  }
  log.info("------- Shutting Down ---------------------");
  sched.shutdown(true);
  log.info("------- Shutdown Complete -----------------");
  SchedulerMetaData metaData=sched.getMetaData();
  log.info("Executed " + metaData.getNumberOfJobsExecuted() + " jobs.");
}

public void run ( ) throws Exception { Logger log = LoggerFactory . getLogger ( RemoteServerExample . class ) ; SchedulerFactory sf = new StdSchedulerFactory ( ) ; Scheduler sched = sf . getScheduler ( ) ; log . info ( "------- Initialization Complete -----------" ) ; log . info ( "------- (Not Scheduling any Jobs - relying on a remote client to schedule jobs --" ) ; log . info ( "------- Starting Scheduler ----------------" ) ; sched . start ( ) ; log . info ( "------- Started Scheduler -----------------" ) ; log . info ( "------- Waiting ten minutes... ------------" ) ; try { Thread . sleep ( 600L * 1000L ) ; } catch ( Exception e ) { } log . info ( "------- Shutting Down ---------------------" ) ; sched . shutdown ( true ) ; log . info ( "------- Shutdown Complete -----------------" ) ; SchedulerMetaData metaData = sched . getMetaData ( ) ; log . info ( "Executed " + metaData . getNumberOfJobsExecuted ( ) + " jobs." ) ; }
this example will spawn a large number of jobs to run
