Tabnine Logo
SchedulerPlugin.pauseJob
Code IndexAdd Tabnine to your IDE (free)

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

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

origin: org.xwiki.platform/xwiki-platform-scheduler-api

private void unregister(BaseObject jobObj, XWikiContext context) throws SchedulerPluginException
{
  String status = jobObj.getStringValue("status");
  if (status.equals(JobState.STATE_NORMAL) || status.equals(JobState.STATE_PAUSED)) {
    scheduleJob(jobObj, context);
  }
  if (status.equals(JobState.STATE_PAUSED)) {
    pauseJob(jobObj, context);
  }
}
origin: org.xwiki.platform/xwiki-platform-scheduler-api

private void register(BaseObject jobObj, XWikiContext context) throws SchedulerPluginException
{
  String status = jobObj.getStringValue("status");
  if (status.equals(JobState.STATE_NORMAL) || status.equals(JobState.STATE_PAUSED)) {
    scheduleJob(jobObj, context);
  }
  if (status.equals(JobState.STATE_PAUSED)) {
    pauseJob(jobObj, context);
  }
}
origin: org.xwiki.platform/xwiki-platform-scheduler-api

public boolean pauseJob(BaseObject object)
{
  try {
    getProtectedPlugin().pauseJob(object, this.context);
    LOGGER.debug("Pause 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

public boolean pauseJob(BaseObject object)
{
  try {
    getProtectedPlugin().pauseJob(object, this.context);
    LOG.debug("Pause 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

this.pauseJob(jobObj, context);
com.xpn.xwiki.plugin.schedulerSchedulerPluginpauseJob

Javadoc

Pause the job with the given name by pausing all of its current triggers.

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
  • 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

  • Creating JSON documents from java classes using gson
  • setContentView (Activity)
  • scheduleAtFixedRate (Timer)
  • notifyDataSetChanged (ArrayAdapter)
  • BufferedReader (java.io)
    Wraps an existing Reader and buffers the input. Expensive interaction with the underlying reader is
  • System (java.lang)
    Provides access to system-related information and resources including standard input and output. Ena
  • URLConnection (java.net)
    A connection to a URL for reading or writing. For HTTP connections, see HttpURLConnection for docume
  • Set (java.util)
    A Set is a data structure which does not allow duplicate elements.
  • ServletException (javax.servlet)
    Defines a general exception a servlet can throw when it encounters difficulty.
  • JFileChooser (javax.swing)
  • Best IntelliJ plugins
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