Codota Logo
SchedulerPlugin.getPreviousFireTime
Code IndexAdd Codota to your IDE (free)

How to use
getPreviousFireTime
method
in
com.xpn.xwiki.plugin.scheduler.SchedulerPlugin

Best Java code snippets using com.xpn.xwiki.plugin.scheduler.SchedulerPlugin.getPreviousFireTime (Showing top 2 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Connection c =
  • Codota IconDataSource dataSource;dataSource.getConnection()
  • Codota IconString url;DriverManager.getConnection(url)
  • Codota IconIdentityDatabaseUtil.getDBConnection()
  • Smart code suggestions by Codota
}
origin: org.xwiki.platform/xwiki-platform-scheduler-api

/**
 * Give, for a BaseObject job in a {@link JobState#STATE_NORMAL} state, the previous date at which the job has been
 * executed. Note that this method does not compute a date from the CRON expression, it only returns a date value 
 * which is set each time the job is executed. If the job has never been fired this method will return null.
 * 
 * @param object the BaseObject for which to give the fire time
 * @return the date the job has been executed
 */
public Date getPreviousFireTime(BaseObject object)
{
  try {
    return getProtectedPlugin().getPreviousFireTime(object, this.context);
  } catch (SchedulerPluginException e) {
    this.context.put("error", e.getMessage());
    return null;
  }
}
origin: com.xpn.xwiki.platform.plugins/xwiki-plugin-scheduler

/**
 * Give, for a BaseObject job in a {@link JobState#STATE_NORMAL} state, the previous date at which the job has been
 * executed. Note that this method does not compute a date from the CRON expression, it only returns a date value 
 * which is set each time the job is executed. If the job has never been fired this method will return null.
 * 
 * @param object the BaseObject for which to give the fire time
 * @return the date the job has been executed
 */
public Date getPreviousFireTime(BaseObject object)
{
  try {
    return getProtectedPlugin().getPreviousFireTime(object, this.context);
  } catch (SchedulerPluginException e) {
    this.context.put("error", e.getMessage());
    return null;
  }
}
com.xpn.xwiki.plugin.schedulerSchedulerPlugingetPreviousFireTime

Javadoc

Give, for a BaseObject job in a JobState#STATE_NORMAL state, the previous date at which the job has been executed. Note that this method does not compute a date from the CRON expression, it only returns a date value which is set each time the job is executed. If the job has never been fired this method will return null.

Popular methods of SchedulerPlugin

  • scheduleJob
  • getDefaultSchedulerInstance
  • getJobStatus
    Retrieve the job's status of a given com.xpn.xwiki.plugin.scheduler.SchedulerPlugin#XWIKI_JOB_CLASS
  • getNextFireTime
    Get the next fire time for the given job name SchedulerJob
  • getObjectUniqueId
    Compute a cross-document unique com.xpn.xwiki.objects.BaseObject id, by concatenating its name (it's
  • getScheduler
  • getTrigger
    Get Trigger object of the given job
  • pauseJob
    Pause the job with the given name by pausing all of its current triggers.
  • prepareJobStubContext
    Create and feed a stub context for the job execution thread. Stub context data are retrieved from jo
  • restoreExistingJobs
    Restore the existing job, by looking up for such job in the database and re-scheduling those accordi
  • resumeJob
    Resume the job with the given name (un-pause)
  • saveStatus
  • resumeJob,
  • saveStatus,
  • setScheduler,
  • setStatusListener,
  • triggerJob,
  • unscheduleJob,
  • getWikiIdPrefix,
  • onDocumentEvent,
  • onWikiDeletedEvent

Popular in Java

  • Running tasks concurrently on multiple threads
  • addToBackStack (FragmentTransaction)
  • onCreateOptionsMenu (Activity)
  • requestLocationUpdates (LocationManager)
  • HttpServer (com.sun.net.httpserver)
    This class implements a simple HTTP server. A HttpServer is bound to an IP address and port number a
  • InputStream (java.io)
    A readable source of bytes.Most clients will use input streams that read data from the file system (
  • URLConnection (java.net)
    The abstract class URLConnection is the superclass of all classes that represent a communications li
  • Deque (java.util)
    A linear collection that supports element insertion and removal at both ends. The name deque is shor
  • PriorityQueue (java.util)
    An unbounded priority Queue based on a priority heap. The elements of the priority queue are ordered
  • Semaphore (java.util.concurrent)
    A counting semaphore. Conceptually, a semaphore maintains a set of permits. Each #acquire blocks if
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