play.jobs
Class JobsPlugin

java.lang.Object
  extended by play.PlayPlugin
      extended by play.jobs.JobsPlugin
All Implemented Interfaces:
java.lang.Comparable<PlayPlugin>

public class JobsPlugin
extends PlayPlugin


Field Summary
static java.util.concurrent.ScheduledThreadPoolExecutor executor
           
static java.util.List<Job> scheduledJobs
           
 
Fields inherited from class play.PlayPlugin
index
 
Constructor Summary
JobsPlugin()
           
 
Method Summary
 void afterApplicationStart()
          Called after the application start.
 java.lang.String getStatus()
          Return the plugin status
 void onApplicationStart()
          Called at application start (and at each reloading) Time to start stateful things.
 void onApplicationStop()
          Called at application stop (and before each reloading) Time to shutdown stateful things.
static
<V> void
scheduleForCRON(Job<V> job)
           
 
Methods inherited from class play.PlayPlugin
addMimeTypes, addTemplateExtensions, afterActionInvocation, afterFixtureLoad, afterInvocation, beforeActionInvocation, beforeDetectingChanges, beforeInvocation, bind, bind, compareTo, compileAll, compileSources, detectChange, detectClassesChange, enhance, getJsonStatus, getMessage, invocationFinally, loadTemplate, modelFactory, onActionInvocationResult, onApplicationReady, onClassesChange, onConfigurationRead, onEvent, onInvocationException, onInvocationSuccess, onLoad, onRequestRouting, onRoutesLoaded, onTemplateCompilation, overrideTemplateSource, postEvent, rawInvocation, routeRequest, runTest, serveStatic, unBind, willBeValidated
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

executor

public static java.util.concurrent.ScheduledThreadPoolExecutor executor

scheduledJobs

public static java.util.List<Job> scheduledJobs
Constructor Detail

JobsPlugin

public JobsPlugin()
Method Detail

getStatus

public java.lang.String getStatus()
Description copied from class: PlayPlugin
Return the plugin status

Overrides:
getStatus in class PlayPlugin

afterApplicationStart

public void afterApplicationStart()
Description copied from class: PlayPlugin
Called after the application start.

Overrides:
afterApplicationStart in class PlayPlugin

onApplicationStart

public void onApplicationStart()
Description copied from class: PlayPlugin
Called at application start (and at each reloading) Time to start stateful things.

Overrides:
onApplicationStart in class PlayPlugin

scheduleForCRON

public static <V> void scheduleForCRON(Job<V> job)

onApplicationStop

public void onApplicationStop()
Description copied from class: PlayPlugin
Called at application stop (and before each reloading) Time to shutdown stateful things.

Overrides:
onApplicationStop in class PlayPlugin


Guillaume Bort & zenexity - Distributed under Apache 2 licence, without any warrantly