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

How to use
updateTriggerGroupStateFromOtherState
method
in
org.quartz.impl.jdbcjobstore.DriverDelegate

Best Java code snippets using org.quartz.impl.jdbcjobstore.DriverDelegate.updateTriggerGroupStateFromOtherState (Showing top 4 results out of 315)

origin: quartz-scheduler/quartz

    STATE_WAITING, STATE_WAITING);
getDelegate().updateTriggerGroupStateFromOtherState(
    conn, matcher, STATE_PAUSED_BLOCKED, STATE_BLOCKED);
origin: quartz-scheduler/quartz

    STATE_WAITING, STATE_WAITING);
getDelegate().updateTriggerGroupStateFromOtherState(
    conn, matcher, STATE_PAUSED_BLOCKED, STATE_BLOCKED);
origin: com.opensymphony.quartz/com.springsource.org.quartz

/**
 * <p>
 * Pause all of the <code>{@link org.quartz.Trigger}s</code> in the
 * given group.
 * </p>
 * 
 * @see #resumeTriggerGroup(Connection, SchedulingContext, String)
 */
public void pauseTriggerGroup(Connection conn, SchedulingContext ctxt,
    String groupName) throws JobPersistenceException {
  try {
    getDelegate().updateTriggerGroupStateFromOtherStates(
        conn, groupName, STATE_PAUSED, STATE_ACQUIRED,
        STATE_WAITING, STATE_WAITING);
    getDelegate().updateTriggerGroupStateFromOtherState(
        conn, groupName, STATE_PAUSED_BLOCKED, STATE_BLOCKED);
    
    if (!getDelegate().isTriggerGroupPaused(conn, groupName)) {
      getDelegate().insertPausedTriggerGroup(conn, groupName);
    }
  } catch (SQLException e) {
    throw new JobPersistenceException("Couldn't pause trigger group '"
        + groupName + "': " + e.getMessage(), e);
  }
}
origin: quartz/quartz-all

/**
 * <p>
 * Pause all of the <code>{@link org.quartz.Trigger}s</code> in the
 * given group.
 * </p>
 * 
 * @see #resumeTriggerGroup(Connection, SchedulingContext, String)
 */
public void pauseTriggerGroup(Connection conn, SchedulingContext ctxt,
    String groupName) throws JobPersistenceException {
  try {
    getDelegate().updateTriggerGroupStateFromOtherStates(
        conn, groupName, STATE_PAUSED, STATE_ACQUIRED,
        STATE_WAITING, STATE_WAITING);
    getDelegate().updateTriggerGroupStateFromOtherState(
        conn, groupName, STATE_PAUSED_BLOCKED, STATE_BLOCKED);
    
    if (!getDelegate().isTriggerGroupPaused(conn, groupName)) {
      getDelegate().insertPausedTriggerGroup(conn, groupName);
    }
  } catch (SQLException e) {
    throw new JobPersistenceException("Couldn't pause trigger group '"
        + groupName + "': " + e.getMessage(), e);
  }
}
org.quartz.impl.jdbcjobstoreDriverDelegateupdateTriggerGroupStateFromOtherState

Javadoc

Update all of the triggers of the given group to the given new state, if they are in the given old state.

Popular methods of DriverDelegate

  • calendarExists
    Check whether or not a calendar exists.
  • calendarIsReferenced
    Check whether or not a calendar is referenced by any triggers.
  • deleteCalendar
    Delete a calendar.
  • deleteFiredTrigger
    Delete a fired trigger.
  • deleteFiredTriggers
    Delete all fired triggers of the given instance.
  • deleteJobDetail
    Delete the job detail record for the given job.
  • deletePausedTriggerGroup
  • deleteSchedulerState
    Delete a scheduler-instance state record.
  • deleteTrigger
    Delete the base trigger data for a trigger.
  • insertCalendar
    Insert a new calendar.
  • insertFiredTrigger
    Insert a fired trigger.
  • insertJobDetail
    Insert the job detail record.
  • insertFiredTrigger,
  • insertJobDetail,
  • insertPausedTriggerGroup,
  • insertSchedulerState,
  • insertTrigger,
  • isTriggerGroupPaused,
  • jobExists,
  • selectCalendar,
  • selectCalendars,
  • selectFiredTriggerInstanceNames

Popular in Java

  • Making http post requests using okhttp
  • setRequestProperty (URLConnection)
  • getExternalFilesDir (Context)
  • startActivity (Activity)
  • Kernel (java.awt.image)
  • Selector (java.nio.channels)
    A controller for the selection of SelectableChannel objects. Selectable channels can be registered w
  • HttpServlet (javax.servlet.http)
    Provides an abstract class to be subclassed to create an HTTP servlet suitable for a Web site. A sub
  • XPath (javax.xml.xpath)
    XPath provides access to the XPath evaluation environment and expressions. Evaluation of XPath Expr
  • BasicDataSource (org.apache.commons.dbcp)
    Basic implementation of javax.sql.DataSource that is configured via JavaBeans properties. This is no
  • Join (org.hibernate.mapping)
  • Top 25 Plugins for Webstorm
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