Tabnine Logo
DriverDelegate.isTriggerGroupPaused
Code IndexAdd Tabnine to your IDE (free)

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

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

origin: quartz-scheduler/quartz

void resetTriggerFromErrorState(Connection conn, final TriggerKey triggerKey)
  throws JobPersistenceException {
  try {
    String newState = STATE_WAITING;
    if(getDelegate().isTriggerGroupPaused(conn, triggerKey.getGroup())) {
      newState = STATE_PAUSED;
    }
    getDelegate().updateTriggerStateFromOtherState(conn, triggerKey, newState, STATE_ERROR);
    getLog().info("Trigger " + triggerKey + " reset from ERROR state to: " + newState);
  } catch (SQLException e) {
    throw new JobPersistenceException(
        "Couldn't reset from error state of trigger (" + triggerKey + "): " + e.getMessage(), e);
  }
}
origin: quartz-scheduler/quartz

void resetTriggerFromErrorState(Connection conn, final TriggerKey triggerKey)
  throws JobPersistenceException {
  try {
    String newState = STATE_WAITING;
    if(getDelegate().isTriggerGroupPaused(conn, triggerKey.getGroup())) {
      newState = STATE_PAUSED;
    }
    getDelegate().updateTriggerStateFromOtherState(conn, triggerKey, newState, STATE_ERROR);
    getLog().info("Trigger " + triggerKey + " reset from ERROR state to: " + newState);
  } catch (SQLException e) {
    throw new JobPersistenceException(
        "Couldn't reset from error state of trigger (" + triggerKey + "): " + e.getMessage(), e);
  }
}
origin: quartz-scheduler/quartz

/**
 * <p>
 * Pause all triggers - equivalent of calling <code>pauseTriggerGroup(group)</code>
 * on every group.
 * </p>
 * 
 * <p>
 * When <code>resumeAll()</code> is called (to un-pause), trigger misfire
 * instructions WILL be applied.
 * </p>
 * 
 * @see #resumeAll(Connection)
 * @see #pauseTriggerGroup(java.sql.Connection, org.quartz.impl.matchers.GroupMatcher)
 */
public void pauseAll(Connection conn)
  throws JobPersistenceException {
  List<String> names = getTriggerGroupNames(conn);
  for (String name: names) {
    pauseTriggerGroup(conn, GroupMatcher.triggerGroupEquals(name));
  }
  try {
    if (!getDelegate().isTriggerGroupPaused(conn, ALL_GROUPS_PAUSED)) {
      getDelegate().insertPausedTriggerGroup(conn, ALL_GROUPS_PAUSED);
    }
  } catch (SQLException e) {
    throw new JobPersistenceException(
        "Couldn't pause all trigger groups: " + e.getMessage(), e);
  }
}
origin: quartz-scheduler/quartz

/**
 * <p>
 * Pause all triggers - equivalent of calling <code>pauseTriggerGroup(group)</code>
 * on every group.
 * </p>
 * 
 * <p>
 * When <code>resumeAll()</code> is called (to un-pause), trigger misfire
 * instructions WILL be applied.
 * </p>
 * 
 * @see #resumeAll(Connection)
 * @see #pauseTriggerGroup(java.sql.Connection, org.quartz.impl.matchers.GroupMatcher)
 */
public void pauseAll(Connection conn)
  throws JobPersistenceException {
  List<String> names = getTriggerGroupNames(conn);
  for (String name: names) {
    pauseTriggerGroup(conn, GroupMatcher.triggerGroupEquals(name));
  }
  try {
    if (!getDelegate().isTriggerGroupPaused(conn, ALL_GROUPS_PAUSED)) {
      getDelegate().insertPausedTriggerGroup(conn, ALL_GROUPS_PAUSED);
    }
  } catch (SQLException e) {
    throw new JobPersistenceException(
        "Couldn't pause all trigger groups: " + e.getMessage(), e);
  }
}
origin: quartz-scheduler/quartz

if (!getDelegate().isTriggerGroupPaused(conn, group)) {
  getDelegate().insertPausedTriggerGroup(conn, group);
origin: quartz-scheduler/quartz

if (!getDelegate().isTriggerGroupPaused(conn, group)) {
  getDelegate().insertPausedTriggerGroup(conn, group);
origin: quartz-scheduler/quartz

shouldBepaused = getDelegate().isTriggerGroupPaused(
    conn, newTrigger.getKey().getGroup());
  shouldBepaused = getDelegate().isTriggerGroupPaused(conn,
      ALL_GROUPS_PAUSED);
origin: quartz-scheduler/quartz

shouldBepaused = getDelegate().isTriggerGroupPaused(
    conn, newTrigger.getKey().getGroup());
  shouldBepaused = getDelegate().isTriggerGroupPaused(conn,
      ALL_GROUPS_PAUSED);
origin: com.opensymphony.quartz/com.springsource.org.quartz

/**
 * <p>
 * Pause all triggers - equivalent of calling <code>pauseTriggerGroup(group)</code>
 * on every group.
 * </p>
 * 
 * <p>
 * When <code>resumeAll()</code> is called (to un-pause), trigger misfire
 * instructions WILL be applied.
 * </p>
 * 
 * @see #resumeAll(SchedulingContext)
 * @see #pauseTriggerGroup(SchedulingContext, String)
 */
public void pauseAll(Connection conn, SchedulingContext ctxt)
  throws JobPersistenceException {
  String[] names = getTriggerGroupNames(conn, ctxt);
  for (int i = 0; i < names.length; i++) {
    pauseTriggerGroup(conn, ctxt, names[i]);
  }
  try {
    if (!getDelegate().isTriggerGroupPaused(conn, ALL_GROUPS_PAUSED)) {
      getDelegate().insertPausedTriggerGroup(conn, ALL_GROUPS_PAUSED);
    }
  } catch (SQLException e) {
    throw new JobPersistenceException(
        "Couldn't pause all trigger groups: " + e.getMessage(), e);
  }
}
origin: quartz/quartz-all

/**
 * <p>
 * Pause all triggers - equivalent of calling <code>pauseTriggerGroup(group)</code>
 * on every group.
 * </p>
 * 
 * <p>
 * When <code>resumeAll()</code> is called (to un-pause), trigger misfire
 * instructions WILL be applied.
 * </p>
 * 
 * @see #resumeAll(SchedulingContext)
 * @see #pauseTriggerGroup(SchedulingContext, String)
 */
public void pauseAll(Connection conn, SchedulingContext ctxt)
  throws JobPersistenceException {
  String[] names = getTriggerGroupNames(conn, ctxt);
  for (int i = 0; i < names.length; i++) {
    pauseTriggerGroup(conn, ctxt, names[i]);
  }
  try {
    if (!getDelegate().isTriggerGroupPaused(conn, ALL_GROUPS_PAUSED)) {
      getDelegate().insertPausedTriggerGroup(conn, ALL_GROUPS_PAUSED);
    }
  } catch (SQLException e) {
    throw new JobPersistenceException(
        "Couldn't pause all trigger groups: " + e.getMessage(), e);
  }
}
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);
  }
}
origin: com.opensymphony.quartz/com.springsource.org.quartz

shouldBepaused = getDelegate().isTriggerGroupPaused(
    conn, newTrigger.getGroup());
  shouldBepaused = getDelegate().isTriggerGroupPaused(conn,
      ALL_GROUPS_PAUSED);
origin: quartz/quartz-all

shouldBepaused = getDelegate().isTriggerGroupPaused(
    conn, newTrigger.getGroup());
  shouldBepaused = getDelegate().isTriggerGroupPaused(conn,
      ALL_GROUPS_PAUSED);
org.quartz.impl.jdbcjobstoreDriverDelegateisTriggerGroupPaused

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,
  • jobExists,
  • selectCalendar,
  • selectCalendars,
  • selectFiredTriggerInstanceNames

Popular in Java

  • Finding current android device location
  • runOnUiThread (Activity)
  • getResourceAsStream (ClassLoader)
  • startActivity (Activity)
  • InputStreamReader (java.io)
    A class for turning a byte stream into a character stream. Data read from the source input stream is
  • Proxy (java.net)
    This class represents proxy server settings. A created instance of Proxy stores a type and an addres
  • Vector (java.util)
    Vector is an implementation of List, backed by an array and synchronized. All optional operations in
  • Collectors (java.util.stream)
  • Stream (java.util.stream)
    A sequence of elements supporting sequential and parallel aggregate operations. The following exampl
  • JOptionPane (javax.swing)
  • Top 12 Jupyter Notebook extensions
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