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()
          Retun the plugin status
 void onApplicationStart()
          Called at application start (and at each reloading) Time to start statefull things.
 void onApplicationStop()
          Called at application stop (and before each reloading) Time to shutdown statefull things.
static void scheduleForCRON(Job job)
           
 
Methods inherited from class play.PlayPlugin
afterActionInvocation, afterInvocation, beforeActionInvocation, beforeInvocation, bind, compareTo, compileAll, detectChange, enhance, invocationFinally, onActionInvocationResult, onConfigurationRead, onEvent, onInvocationException, onLoad, onRoutesLoaded, postEvent, rawInvocation, routeRequest, serveStatic
 
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
Retun 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 statefull things.

Overrides:
onApplicationStart in class PlayPlugin

scheduleForCRON

public static void scheduleForCRON(Job job)

onApplicationStop

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

Overrides:
onApplicationStop in class PlayPlugin


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