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

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

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

origin: quartz-scheduler/quartz

getDelegate().updateTriggerGroupStateFromOtherStates(
    conn, matcher, STATE_PAUSED, STATE_ACQUIRED,
    STATE_WAITING, STATE_WAITING);
origin: quartz-scheduler/quartz

getDelegate().updateTriggerGroupStateFromOtherStates(
    conn, matcher, STATE_PAUSED, STATE_ACQUIRED,
    STATE_WAITING, STATE_WAITING);
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.jdbcjobstoreDriverDelegateupdateTriggerGroupStateFromOtherStates

Javadoc

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

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

  • Parsing JSON documents to java classes using gson
  • setRequestProperty (URLConnection)
  • setContentView (Activity)
  • getContentResolver (Context)
  • SocketTimeoutException (java.net)
    This exception is thrown when a timeout expired on a socket read or accept operation.
  • SQLException (java.sql)
    An exception that indicates a failed JDBC operation. It provides the following information about pro
  • Calendar (java.util)
    Calendar is an abstract base class for converting between a Date object and a set of integer fields
  • DataSource (javax.sql)
    An interface for the creation of Connection objects which represent a connection to a database. This
  • Base64 (org.apache.commons.codec.binary)
    Provides Base64 encoding and decoding as defined by RFC 2045.This class implements section 6.8. Base
  • Reflections (org.reflections)
    Reflections one-stop-shop objectReflections scans your classpath, indexes the metadata, allows you t
  • 21 Best Atom Packages for 2021
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