Codota Logo
DriverDelegate.updateSchedulerState
Code IndexAdd Codota to your IDE (free)

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

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

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
BufferedReader b =
  • Codota IconInputStream in;new BufferedReader(new InputStreamReader(in))
  • Codota IconReader in;new BufferedReader(in)
  • Codota IconFile file;new BufferedReader(new FileReader(file))
  • Smart code suggestions by Codota
}
origin: quartz-scheduler/quartz

protected List<SchedulerStateRecord> clusterCheckIn(Connection conn)
  throws JobPersistenceException {
  List<SchedulerStateRecord> failedInstances = findFailedInstances(conn);
  
  try {
    // FUTURE_TODO: handle self-failed-out
    // check in...
    lastCheckin = System.currentTimeMillis();
    if(getDelegate().updateSchedulerState(conn, getInstanceId(), lastCheckin) == 0) {
      getDelegate().insertSchedulerState(conn, getInstanceId(),
          lastCheckin, getClusterCheckinInterval());
    }
    
  } catch (Exception e) {
    throw new JobPersistenceException("Failure updating scheduler state when checking-in: "
        + e.getMessage(), e);
  }
  return failedInstances;
}
origin: quartz-scheduler/quartz

protected List<SchedulerStateRecord> clusterCheckIn(Connection conn)
  throws JobPersistenceException {
  List<SchedulerStateRecord> failedInstances = findFailedInstances(conn);
  
  try {
    // FUTURE_TODO: handle self-failed-out
    // check in...
    lastCheckin = System.currentTimeMillis();
    if(getDelegate().updateSchedulerState(conn, getInstanceId(), lastCheckin) == 0) {
      getDelegate().insertSchedulerState(conn, getInstanceId(),
          lastCheckin, getClusterCheckinInterval());
    }
    
  } catch (Exception e) {
    throw new JobPersistenceException("Failure updating scheduler state when checking-in: "
        + e.getMessage(), e);
  }
  return failedInstances;
}
origin: quartz/quartz-all

protected List clusterCheckIn(Connection conn)
  throws JobPersistenceException {
  List failedInstances = findFailedInstances(conn);
  
  try {
    // TODO: handle self-failed-out
    // check in...
    lastCheckin = System.currentTimeMillis();
    if(getDelegate().updateSchedulerState(conn, getInstanceId(), lastCheckin) == 0) {
      getDelegate().insertSchedulerState(conn, getInstanceId(),
          lastCheckin, getClusterCheckinInterval());
    }
    
  } catch (Exception e) {
    throw new JobPersistenceException("Failure updating scheduler state when checking-in: "
        + e.getMessage(), e);
  }
  return failedInstances;
}
origin: com.opensymphony.quartz/com.springsource.org.quartz

protected List clusterCheckIn(Connection conn)
  throws JobPersistenceException {
  List failedInstances = findFailedInstances(conn);
  
  try {
    // TODO: handle self-failed-out
    // check in...
    lastCheckin = System.currentTimeMillis();
    if(getDelegate().updateSchedulerState(conn, getInstanceId(), lastCheckin) == 0) {
      getDelegate().insertSchedulerState(conn, getInstanceId(),
          lastCheckin, getClusterCheckinInterval());
    }
    
  } catch (Exception e) {
    throw new JobPersistenceException("Failure updating scheduler state when checking-in: "
        + e.getMessage(), e);
  }
  return failedInstances;
}
org.quartz.impl.jdbcjobstoreDriverDelegateupdateSchedulerState

Javadoc

Update a scheduler-instance state record.

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
  • notifyDataSetChanged (ArrayAdapter)
  • requestLocationUpdates (LocationManager)
  • getResourceAsStream (ClassLoader)
    Returns a stream for the resource with the specified name. See #getResource(String) for a descriptio
  • Font (java.awt)
    The Font class represents fonts, which are used to render text in a visible way. A font provides the
  • HashSet (java.util)
    This class implements the Set interface, backed by a hash table (actually a HashMap instance). It m
  • Properties (java.util)
    The Properties class represents a persistent set of properties. The Properties can be saved to a st
  • JFrame (javax.swing)
  • BasicDataSource (org.apache.commons.dbcp)
    Basic implementation of javax.sql.DataSource that is configured via JavaBeans properties. This is no
  • LoggerFactory (org.slf4j)
    The LoggerFactory is a utility class producing Loggers for various logging APIs, most notably for lo
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now