congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
SchedulerPluginWithUserTransactionSupport.getName
Code IndexAdd Tabnine to your IDE (free)

How to use
getName
method
in
org.quartz.plugins.SchedulerPluginWithUserTransactionSupport

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

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

/**
 * 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

  /**
   * 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: 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: com.opensymphony.quartz/com.springsource.org.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/quartz-all

/**
 * 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.opensymphony.quartz/com.springsource.org.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: quartz/quartz-all

  /**
   * 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.pluginsSchedulerPluginWithUserTransactionSupportgetName

Javadoc

Get the name of this plugin. Set as part of initialize().

Popular methods of SchedulerPluginWithUserTransactionSupport

  • getLog
    Get the commons Log for this class.
  • initialize
  • resolveUserTransaction
    If the given UserTransaction is not null, it is committed/rolledback, and then returned to the UserT
  • shutdown
    Called in order to inform the SchedulerPlugin that it should free up all of it's resources because
  • start
    Called when the associated Scheduler is started, in order to let the plug-in know it can now make c
  • startUserTransaction
    If wrapInUserTransaction is true, starts a new UserTransaction and returns it. Otherwise, or if esta

Popular in Java

  • Reactive rest calls using spring rest template
  • compareTo (BigDecimal)
  • onCreateOptionsMenu (Activity)
  • startActivity (Activity)
  • FileNotFoundException (java.io)
    Thrown when a file specified by a program cannot be found.
  • UnknownHostException (java.net)
    Thrown when a hostname can not be resolved.
  • JarFile (java.util.jar)
    JarFile is used to read jar entries and their associated data from jar files.
  • JOptionPane (javax.swing)
  • LogFactory (org.apache.commons.logging)
    Factory for creating Log instances, with discovery and configuration features similar to that employ
  • Option (scala)
  • Top 17 Plugins for Android Studio
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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