title: Java Quartz Scheduler status
body: <p>I try to check the Quartz Scheduler status with the code below, but the status return is confusing. Why after I shutdown the scheduler the isStarted status still true and after I re-start the scheduler the isShutDown status is true.</p>
  
  <pre><code>if (logger.isLoggable(Level.INFO)) {
      logger.info("Before: Stand by: "
          + this.scheduler.isInStandbyMode() + ", Start: "
          + this.scheduler.isStarted() + ", Shutdown: "
          + this.scheduler.isShutdown());
  }
  
  this.scheduler.start();
  
  if (logger.isLoggable(Level.INFO)) {
      logger.info("After: Stand by: "
          + this.scheduler.isInStandbyMode() + ", Start: "
          + this.scheduler.isStarted() + ", Shutdown: "
          + this.scheduler.isShutdown());
  }
  
  //Shutdown scheduler
  this.scheduler.shutdown(true);
  if (logger.isLoggable(Level.INFO)) {
      logger.info("Schedule stop: Stand by: "
              + this.scheduler.isInStandbyMode() + ", Start: "
              + this.scheduler.isStarted() + ", Shutdown: "
              + this.scheduler.isShutdown());
  }
  
  //Restart scheduler
  this.scheduler.start();
  if (logger.isLoggable(Level.INFO)) {
      logger.info("schedule start: Stand by: "
              + this.scheduler.isInStandbyMode() + ", Start: "
              + this.scheduler.isStarted() + ", Shutdown: "
              + this.scheduler.isShutdown());
  }
  </code></pre>
  
  <p>And the result return is</p>
  
  <ul>
  <li>INFO: Before: Stand by: true, Start: false, Shutdown: false </li>
  <li>INFO: After: Stand by: false, Start: true, Shutdown: false </li>
  <li>INFO: Schedule stop: Stand by: true, Start: true, Shutdown: true </li>
  <li>INFO: schedule start: Stand by: true, Start: true, Shutdown: true</li>
  </ul>