Codota Logo
JobStoreSupport$MisfireHandler
Code IndexAdd Codota to your IDE (free)

How to use
JobStoreSupport$MisfireHandler
in
org.quartz.impl.jdbcjobstore

Best Java code snippets using org.quartz.impl.jdbcjobstore.JobStoreSupport$MisfireHandler (Showing top 20 results out of 315)

  • Common ways to obtain JobStoreSupport$MisfireHandler
private void myMethod () {
JobStoreSupport$MisfireHandler j =
  • Codota Iconnew MisfireHandler()
  • Smart code suggestions by Codota
}
origin: quartz-scheduler/quartz

/**
 * @see org.quartz.spi.JobStore#schedulerStarted()
 */
public void schedulerStarted() throws SchedulerException {
  if (isClustered()) {
    clusterManagementThread = new ClusterManager();
    if(initializersLoader != null)
      clusterManagementThread.setContextClassLoader(initializersLoader);
    clusterManagementThread.initialize();
  } else {
    try {
      recoverJobs();
    } catch (SchedulerException se) {
      throw new SchedulerConfigException(
          "Failure occured during job recovery.", se);
    }
  }
  misfireHandler = new MisfireHandler();
  if(initializersLoader != null)
    misfireHandler.setContextClassLoader(initializersLoader);
  misfireHandler.initialize();
  schedulerRunning = true;
  
  getLog().debug("JobStore background threads started (as scheduler was started).");
}

origin: quartz-scheduler/quartz

  @Override
  public void run() {
    
    while (!shutdown) {
      long sTime = System.currentTimeMillis();
      RecoverMisfiredJobsResult recoverMisfiredJobsResult = manage();
      if (recoverMisfiredJobsResult.getProcessedMisfiredTriggerCount() > 0) {
        signalSchedulingChangeImmediately(recoverMisfiredJobsResult.getEarliestNewTime());
      }
      if (!shutdown) {
        long timeToSleep = 50l;  // At least a short pause to help balance threads
        if (!recoverMisfiredJobsResult.hasMoreMisfiredTriggers()) {
          timeToSleep = getMisfireThreshold() - (System.currentTimeMillis() - sTime);
          if (timeToSleep <= 0) {
            timeToSleep = 50l;
          }
          if(numFails > 0) {
            timeToSleep = Math.max(getDbRetryInterval(), timeToSleep);
          }
        }
        
        try {
          Thread.sleep(timeToSleep);
        } catch (Exception ignore) {
        }
      }//while !shutdown
    }
  }
}
origin: quartz-scheduler/quartz

misfireHandler.shutdown();
try {
  misfireHandler.join();
} catch (InterruptedException ignore) {
origin: quartz-scheduler/quartz

MisfireHandler() {
  this.setName("QuartzScheduler_" + instanceName + "-" + instanceId + "_MisfireHandler");
  this.setDaemon(getMakeThreadsDaemons());
}
origin: quartz-scheduler/quartz

misfireHandler.shutdown();
try {
  misfireHandler.join();
} catch (InterruptedException ignore) {
origin: com.opensymphony.quartz/com.springsource.org.quartz

MisfireHandler() {
  this.setName("QuartzScheduler_" + instanceName + "-" + instanceId + "_MisfireHandler");
  this.setDaemon(getMakeThreadsDaemons());
}
origin: quartz-scheduler/quartz

  @Override
  public void run() {
    
    while (!shutdown) {
      long sTime = System.currentTimeMillis();
      RecoverMisfiredJobsResult recoverMisfiredJobsResult = manage();
      if (recoverMisfiredJobsResult.getProcessedMisfiredTriggerCount() > 0) {
        signalSchedulingChangeImmediately(recoverMisfiredJobsResult.getEarliestNewTime());
      }
      if (!shutdown) {
        long timeToSleep = 50l;  // At least a short pause to help balance threads
        if (!recoverMisfiredJobsResult.hasMoreMisfiredTriggers()) {
          timeToSleep = getMisfireThreshold() - (System.currentTimeMillis() - sTime);
          if (timeToSleep <= 0) {
            timeToSleep = 50l;
          }
          if(numFails > 0) {
            timeToSleep = Math.max(getDbRetryInterval(), timeToSleep);
          }
        }
        
        try {
          Thread.sleep(timeToSleep);
        } catch (Exception ignore) {
        }
      }//while !shutdown
    }
  }
}
origin: quartz/quartz-all

public void shutdown() {
  shutdown = true;
  this.interrupt();
}
origin: quartz/quartz-all

public void initialize() {
  //this.manage();
  this.start();
}
origin: quartz/quartz-all

MisfireHandler() {
  this.setName("QuartzScheduler_" + instanceName + "-" + instanceId + "_MisfireHandler");
  this.setDaemon(getMakeThreadsDaemons());
}
origin: com.opensymphony.quartz/com.springsource.org.quartz

public void shutdown() {
  shutdown = true;
  this.interrupt();
}
origin: quartz/quartz-all

/**
 * <p>
 * Called by the QuartzScheduler to inform the <code>JobStore</code> that
 * it should free up all of it's resources because the scheduler is
 * shutting down.
 * </p>
 */
public void shutdown() {
  if (clusterManagementThread != null) {
    clusterManagementThread.shutdown();
  }
  if (misfireHandler != null) {
    misfireHandler.shutdown();
  }
  
  try {
    DBConnectionManager.getInstance().shutdown(getDataSource());
  } catch (SQLException sqle) {
    getLog().warn("Database connection shutdown unsuccessful.", sqle);
  }        
}
origin: com.opensymphony.quartz/com.springsource.org.quartz

/**
 * <p>
 * Called by the QuartzScheduler to inform the <code>JobStore</code> that
 * it should free up all of it's resources because the scheduler is
 * shutting down.
 * </p>
 */
public void shutdown() {
  if (clusterManagementThread != null) {
    clusterManagementThread.shutdown();
  }
  if (misfireHandler != null) {
    misfireHandler.shutdown();
  }
  
  try {
    DBConnectionManager.getInstance().shutdown(getDataSource());
  } catch (SQLException sqle) {
    getLog().warn("Database connection shutdown unsuccessful.", sqle);
  }        
}
origin: quartz-scheduler/quartz

/**
 * @see org.quartz.spi.JobStore#schedulerStarted()
 */
public void schedulerStarted() throws SchedulerException {
  if (isClustered()) {
    clusterManagementThread = new ClusterManager();
    if(initializersLoader != null)
      clusterManagementThread.setContextClassLoader(initializersLoader);
    clusterManagementThread.initialize();
  } else {
    try {
      recoverJobs();
    } catch (SchedulerException se) {
      throw new SchedulerConfigException(
          "Failure occured during job recovery.", se);
    }
  }
  misfireHandler = new MisfireHandler();
  if(initializersLoader != null)
    misfireHandler.setContextClassLoader(initializersLoader);
  misfireHandler.initialize();
  schedulerRunning = true;
  
  getLog().debug("JobStore background threads started (as scheduler was started).");
}

origin: quartz/quartz-all

/**
 * @see org.quartz.spi.JobStore#schedulerStarted()
 */
public void schedulerStarted() throws SchedulerException {
  if (isClustered()) {
    clusterManagementThread = new ClusterManager();
    if(initializersLoader != null)
      clusterManagementThread.setContextClassLoader(initializersLoader);
    clusterManagementThread.initialize();
  } else {
    try {
      recoverJobs();
    } catch (SchedulerException se) {
      throw new SchedulerConfigException(
          "Failure occured during job recovery.", se);
    }
  }
  misfireHandler = new MisfireHandler();
  if(initializersLoader != null)
    misfireHandler.setContextClassLoader(initializersLoader);
  misfireHandler.initialize();
}

origin: quartz-scheduler/quartz

public void shutdown() {
  shutdown = true;
  this.interrupt();
}
origin: com.opensymphony.quartz/com.springsource.org.quartz

/**
 * @see org.quartz.spi.JobStore#schedulerStarted()
 */
public void schedulerStarted() throws SchedulerException {
  if (isClustered()) {
    clusterManagementThread = new ClusterManager();
    if(initializersLoader != null)
      clusterManagementThread.setContextClassLoader(initializersLoader);
    clusterManagementThread.initialize();
  } else {
    try {
      recoverJobs();
    } catch (SchedulerException se) {
      throw new SchedulerConfigException(
          "Failure occured during job recovery.", se);
    }
  }
  misfireHandler = new MisfireHandler();
  if(initializersLoader != null)
    misfireHandler.setContextClassLoader(initializersLoader);
  misfireHandler.initialize();
}
 
origin: quartz-scheduler/quartz

public void shutdown() {
  shutdown = true;
  this.interrupt();
}
origin: quartz/quartz-all

  public void run() {
    
    while (!shutdown) {
      long sTime = System.currentTimeMillis();
      RecoverMisfiredJobsResult recoverMisfiredJobsResult = manage();
      if (recoverMisfiredJobsResult.getProcessedMisfiredTriggerCount() > 0) {
        signalSchedulingChange(recoverMisfiredJobsResult.getEarliestNewTime());
      }
      if (!shutdown) {
        long timeToSleep = 50l;  // At least a short pause to help balance threads
        if (!recoverMisfiredJobsResult.hasMoreMisfiredTriggers()) {
          timeToSleep = getMisfireThreshold() - (System.currentTimeMillis() - sTime);
          if (timeToSleep <= 0) {
            timeToSleep = 50l;
          }
          if(numFails > 0) {
            timeToSleep = Math.max(getDbRetryInterval(), timeToSleep);
          }
        }
        
        try {
          Thread.sleep(timeToSleep);
        } catch (Exception ignore) {
        }
      }//while !shutdown
    }
  }
}
origin: quartz-scheduler/quartz

MisfireHandler() {
  this.setName("QuartzScheduler_" + instanceName + "-" + instanceId + "_MisfireHandler");
  this.setDaemon(getMakeThreadsDaemons());
}
org.quartz.impl.jdbcjobstoreJobStoreSupport$MisfireHandler

Most used methods

  • <init>
  • initialize
  • interrupt
  • manage
  • setContextClassLoader
  • setDaemon
  • setName
  • shutdown
  • join
  • start

Popular in Java

  • Start an intent from android
  • setRequestProperty (URLConnection)
  • compareTo (BigDecimal)
    Compares this BigDecimal with the specified BigDecimal. Two BigDecimal objects that are equal in val
  • runOnUiThread (Activity)
  • FileOutputStream (java.io)
    A file output stream is an output stream for writing data to aFile or to a FileDescriptor. Whether
  • ByteBuffer (java.nio)
    A buffer for bytes. A byte buffer can be created in either one of the following ways: * #allocate(i
  • SecureRandom (java.security)
    This class generates cryptographically secure pseudo-random numbers. It is best to invoke SecureRand
  • Calendar (java.util)
    Calendar is an abstract base class for converting between a Date object and a set of integer fields
  • JButton (javax.swing)
  • Reflections (org.reflections)
    Reflections one-stop-shop objectReflections scans your classpath, indexes the metadata, allows you t
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now