Tabnine Logo
org.quartz.plugins
Code IndexAdd Tabnine to your IDE (free)

How to use org.quartz.plugins

Best Java code snippets using org.quartz.plugins (Showing top 20 results out of 315)

origin: quartz-scheduler/quartz

/**
 * Based on the value of <em>wrapInUserTransaction</em>, wraps the
 * call to shutdown(UserTransaction) in a UserTransaction.
 */
public void shutdown() {
  UserTransaction userTransaction = startUserTransaction();
  try {
    shutdown(userTransaction);
  } finally {
    resolveUserTransaction(userTransaction);
  }
}
  
origin: quartz-scheduler/quartz

/**
 * Based on the value of <em>wrapInUserTransaction</em>, wraps the
 * call to start(UserTransaction) in a UserTransaction.
 */
public void start() {
  UserTransaction userTransaction = startUserTransaction();
  try {
    start(userTransaction);
  } finally {
    resolveUserTransaction(userTransaction);
  }
}
origin: quartz-scheduler/quartz

/**
 * <p>
 * Called during creation of the <code>Scheduler</code> in order to give
 * the <code>SchedulerPlugin</code> a chance to initialize.
 * </p>
 * 
 * @throws org.quartz.SchedulerConfigException
 *           if there is an error initializing.
 */
public void initialize(String name, final Scheduler scheduler, ClassLoadHelper schedulerFactoryClassLoadHelper)
  throws SchedulerException {
  super.initialize(name, scheduler);
  this.classLoadHelper = schedulerFactoryClassLoadHelper;
  
  getLog().info("Registering Quartz Job Initialization Plug-in.");
  
  // Create JobFile objects
  StringTokenizer stok = new StringTokenizer(fileNames, FILE_NAME_DELIMITERS);
  while (stok.hasMoreTokens()) {
    final String fileName = stok.nextToken();
    final JobFile jobFile = new JobFile(fileName);
    jobFiles.put(fileName, jobFile);         
  }
}
origin: quartz-scheduler/quartz

/**
 * If <em>wrapInUserTransaction</em> is true, starts a new UserTransaction 
 * and returns it. Otherwise, or if establishing the transaction fail, it 
 * will return null.
 */
private UserTransaction startUserTransaction() {
  if (wrapInUserTransaction == false) {
    return null;
  }
  
  UserTransaction userTransaction = null;
  try {
    userTransaction = UserTransactionHelper.lookupUserTransaction();
    userTransaction.begin();
  } catch (Throwable t) {
    UserTransactionHelper.returnUserTransaction(userTransaction);
    userTransaction = null;
    getLog().error("Failed to start UserTransaction for plugin: " + getName(), t);
  }
  
  return userTransaction;
}

origin: com.xeiam/sundial

private void shutdownPlugins() {
 java.util.Iterator itr = quartzSchedulerResources.getSchedulerPlugins().iterator();
 while (itr.hasNext()) {
  SchedulerPlugin plugin = (SchedulerPlugin) itr.next();
  plugin.shutdown();
 }
}
origin: com.xeiam/sundial

private void startPlugins() {
 java.util.Iterator itr = quartzSchedulerResources.getSchedulerPlugins().iterator();
 while (itr.hasNext()) {
  SchedulerPlugin plugin = (SchedulerPlugin) itr.next();
  plugin.start();
 }
}
origin: quartz-scheduler/quartz

/**
 * Based on the value of <em>wrapInUserTransaction</em>, wraps the
 * call to shutdown(UserTransaction) in a UserTransaction.
 */
public void shutdown() {
  UserTransaction userTransaction = startUserTransaction();
  try {
    shutdown(userTransaction);
  } finally {
    resolveUserTransaction(userTransaction);
  }
}
  
origin: quartz-scheduler/quartz

/**
 * Based on the value of <em>wrapInUserTransaction</em>, wraps the
 * call to start(UserTransaction) in a UserTransaction.
 */
public void start() {
  UserTransaction userTransaction = startUserTransaction();
  try {
    start(userTransaction);
  } finally {
    resolveUserTransaction(userTransaction);
  }
}
origin: quartz-scheduler/quartz

/**
 * If <em>wrapInUserTransaction</em> is true, starts a new UserTransaction 
 * and returns it. Otherwise, or if establishing the transaction fail, it 
 * will return null.
 */
private UserTransaction startUserTransaction() {
  if (wrapInUserTransaction == false) {
    return null;
  }
  
  UserTransaction userTransaction = null;
  try {
    userTransaction = UserTransactionHelper.lookupUserTransaction();
    userTransaction.begin();
  } catch (Throwable t) {
    UserTransactionHelper.returnUserTransaction(userTransaction);
    userTransaction = null;
    getLog().error("Failed to start UserTransaction for plugin: " + getName(), t);
  }
  
  return userTransaction;
}

origin: quartz-scheduler/quartz

/**
 * <p>
 * Called during creation of the <code>Scheduler</code> in order to give
 * the <code>SchedulerPlugin</code> a chance to initialize.
 * </p>
 * 
 * @throws org.quartz.SchedulerConfigException
 *           if there is an error initializing.
 */
public void initialize(String name, final Scheduler scheduler, ClassLoadHelper schedulerFactoryClassLoadHelper)
  throws SchedulerException {
  super.initialize(name, scheduler);
  this.classLoadHelper = schedulerFactoryClassLoadHelper;
  
  getLog().info("Registering Quartz Job Initialization Plug-in.");
  
  // Create JobFile objects
  StringTokenizer stok = new StringTokenizer(fileNames, FILE_NAME_DELIMITERS);
  while (stok.hasMoreTokens()) {
    final String fileName = stok.nextToken();
    final JobFile jobFile = new JobFile(fileName);
    jobFiles.put(fileName, jobFile);         
  }
}
origin: org.knowm/sundial

private void shutdownPlugins() {
 java.util.Iterator itr = quartzSchedulerResources.getSchedulerPlugins().iterator();
 while (itr.hasNext()) {
  SchedulerPlugin plugin = (SchedulerPlugin) itr.next();
  plugin.shutdown();
 }
}
origin: knowm/Sundial

private void startPlugins() {
 java.util.Iterator itr = quartzSchedulerResources.getSchedulerPlugins().iterator();
 while (itr.hasNext()) {
  SchedulerPlugin plugin = (SchedulerPlugin) itr.next();
  plugin.start();
 }
}
origin: com.opensymphony.quartz/com.springsource.org.quartz

/**
 * Based on the value of <em>wrapInUserTransaction</em>, wraps the
 * call to shutdown(UserTransaction) in a UserTransaction.
 */
public void shutdown() {
  UserTransaction userTransaction = startUserTransaction();
  try {
    shutdown(userTransaction);
  } finally {
    resolveUserTransaction(userTransaction);
  }
}
  
origin: com.opensymphony.quartz/com.springsource.org.quartz

/**
 * Based on the value of <em>wrapInUserTransaction</em>, wraps the
 * call to start(UserTransaction) in a UserTransaction.
 */
public void start() {
  UserTransaction userTransaction = startUserTransaction();
  try {
    start(userTransaction);
  } finally {
    resolveUserTransaction(userTransaction);
  }
}
origin: quartz-scheduler/quartz

  /**
   * If the given UserTransaction is not null, it is committed/rolledback,
   * and then returned to the UserTransactionHelper.
   */
  private void resolveUserTransaction(UserTransaction userTransaction) {
    if (userTransaction != null) {
      try {
        if (userTransaction.getStatus() == Status.STATUS_MARKED_ROLLBACK) {
          userTransaction.rollback();
        } else {
          userTransaction.commit();
        } 
      } catch (Throwable t) {
        getLog().error("Failed to resolve UserTransaction for plugin: " + getName(), t);
      } finally {
        UserTransactionHelper.returnUserTransaction(userTransaction);
      }
    }
  }
}
origin: knowm/Sundial

private void shutdownPlugins() {
 java.util.Iterator itr = quartzSchedulerResources.getSchedulerPlugins().iterator();
 while (itr.hasNext()) {
  SchedulerPlugin plugin = (SchedulerPlugin) itr.next();
  plugin.shutdown();
 }
}
origin: org.knowm/sundial

private void startPlugins() {
 java.util.Iterator itr = quartzSchedulerResources.getSchedulerPlugins().iterator();
 while (itr.hasNext()) {
  SchedulerPlugin plugin = (SchedulerPlugin) itr.next();
  plugin.start();
 }
}
origin: quartz/quartz-all

/**
 * Based on the value of <em>wrapInUserTransaction</em>, wraps the
 * call to shutdown(UserTransaction) in a UserTransaction.
 */
public void shutdown() {
  UserTransaction userTransaction = startUserTransaction();
  try {
    shutdown(userTransaction);
  } finally {
    resolveUserTransaction(userTransaction);
  }
}
  
origin: quartz/quartz-all

/**
 * Based on the value of <em>wrapInUserTransaction</em>, wraps the
 * call to start(UserTransaction) in a UserTransaction.
 */
public void start() {
  UserTransaction userTransaction = startUserTransaction();
  try {
    start(userTransaction);
  } finally {
    resolveUserTransaction(userTransaction);
  }
}
origin: quartz-scheduler/quartz

  /**
   * If the given UserTransaction is not null, it is committed/rolledback,
   * and then returned to the UserTransactionHelper.
   */
  private void resolveUserTransaction(UserTransaction userTransaction) {
    if (userTransaction != null) {
      try {
        if (userTransaction.getStatus() == Status.STATUS_MARKED_ROLLBACK) {
          userTransaction.rollback();
        } else {
          userTransaction.commit();
        } 
      } catch (Throwable t) {
        getLog().error("Failed to resolve UserTransaction for plugin: " + getName(), t);
      } finally {
        UserTransactionHelper.returnUserTransaction(userTransaction);
      }
    }
  }
}
org.quartz.plugins

Most used classes

  • ShutdownHookPlugin
    This plugin catches the event of the JVM terminating (such as upon a CRTL-C) and tells the scheduler
  • LoggingJobHistoryPlugin
    Logs a history of all job executions (and execution vetos) via the Jakarta Commons-Logging framework
  • LoggingTriggerHistoryPlugin
    Logs a history of all trigger firings via the Jakarta Commons-Logging framework. The logged message
  • SchedulerPluginWithUserTransactionSupport
    Base class for plugins that wish to support having their start and shutdown methods run within a Use
  • XMLSchedulingDataProcessorPlugin
    This plugin loads XML file(s) to add jobs and schedule them with triggers as the scheduler is initia
  • JobInterruptMonitorPlugin$InterruptMonitor,
  • JobInterruptMonitorPlugin,
  • JobInitializationPlugin$JobFile,
  • JobInitializationPlugin,
  • JobInitializationPluginMultiple,
  • ValidationException,
  • XMLSchedulingDataProcessor,
  • XMLSchedulingDataProcessorPlugin$JobFile
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now