congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
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
  • scheduleAtFixedRate (ScheduledExecutorService)
  • getSharedPreferences (Context)
  • notifyDataSetChanged (ArrayAdapter)
  • Table (com.google.common.collect)
    A collection that associates an ordered pair of keys, called a row key and a column key, with a sing
  • FileNotFoundException (java.io)
    Thrown when a file specified by a program cannot be found.
  • HttpURLConnection (java.net)
    An URLConnection for HTTP (RFC 2616 [http://tools.ietf.org/html/rfc2616]) used to send and receive d
  • TimerTask (java.util)
    The TimerTask class represents a task to run at a specified time. The task may be run once or repeat
  • Table (org.hibernate.mapping)
    A relational table
  • Logger (org.slf4j)
    The org.slf4j.Logger interface is the main user entry point of SLF4J API. It is expected that loggin
  • CodeWhisperer alternatives
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