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

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

Best Java code snippets using com.xpn.xwiki.plugin.scheduler.SchedulerPlugin.triggerJob (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

/**
 * Trigger a BaseObject job (execute it now).
 * 
 * @param object the BaseObject Job to be triggered
 * @return true on success, false on failure.
 */
public boolean triggerJob(BaseObject object)
{
  try {
    getProtectedPlugin().triggerJob(object, this.context);
    LOGGER.debug("Trigger Job: [{}]", object.getStringValue("jobName"));
    return true;
  } catch (XWikiException e) {
    this.context.put("error", e.getMessage());
    return false;
  }
}

origin: com.xpn.xwiki.platform.plugins/xwiki-plugin-scheduler

/**
 * Trigger a BaseObject job (execute it now).
 * 
 * @param object the BaseObject Job to be triggered
 * @return true on success, false on failure.
 */
public boolean triggerJob(BaseObject object)
{
  try {
    getProtectedPlugin().triggerJob(object, this.context);
    LOG.debug("Trigger Job : " + object.getStringValue("jobName"));
    return true;
  } catch (XWikiException e) {
    this.context.put("error", e.getMessage());
    return false;
  }
}

com.xpn.xwiki.plugin.schedulerSchedulerPlugintriggerJob

Javadoc

Trigger a job (execute it now)

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
  • getPreviousFireTime
    Give, for a BaseObject job in a JobState#STATE_NORMAL state, the previous date at which the job has
  • 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)
  • restoreExistingJobs,
  • resumeJob,
  • saveStatus,
  • setScheduler,
  • setStatusListener,
  • unscheduleJob,
  • getWikiIdPrefix,
  • onDocumentEvent,
  • onWikiDeletedEvent

Popular in Java

  • Finding current android device location
  • onRequestPermissionsResult (Fragment)
  • setRequestProperty (URLConnection)
    Sets the general request property. If a property with the key already exists, overwrite its value wi
  • 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
  • Font (java.awt)
    The Font class represents fonts, which are used to render text in a visible way. A font provides the
  • Point (java.awt)
    A point representing a location in (x, y) coordinate space, specified in integer precision.
  • URLConnection (java.net)
    The abstract class URLConnection is the superclass of all classes that represent a communications li
  • Properties (java.util)
    The Properties class represents a persistent set of properties. The Properties can be saved to a st
  • ImageIO (javax.imageio)
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