public class JobsPlugin extends PlayPlugin
PlayPlugin.Filter<T>
Modifier and Type | Field and Description |
---|---|
static java.util.concurrent.ScheduledThreadPoolExecutor |
executor |
static java.util.List<Job> |
scheduledJobs |
index
Constructor and Description |
---|
JobsPlugin() |
Modifier and Type | Method and Description |
---|---|
void |
afterApplicationStart()
Called after the application start.
|
void |
afterInvocation()
Called after an invocation.
|
void |
beforeInvocation()
Called before a Play!
|
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) |
addMimeTypes, addTemplateExtensions, afterActionInvocation, afterFixtureLoad, beforeActionInvocation, beforeDetectingChanges, bind, bind, bind, bindBean, compareTo, compileAll, compileSources, detectChange, detectClassesChange, enhance, getFilter, getFunctionalTests, getJsonStatus, getMessage, getUnitTests, hasFilter, invocationFinally, loadTemplate, modelFactory, onActionInvocationFinally, onActionInvocationResult, onApplicationReady, onClassesChange, onConfigurationRead, onEvent, onInvocationException, onInvocationSuccess, onLoad, onRequestRouting, onRoutesLoaded, onTemplateCompilation, overrideTemplateSource, postEvent, rawInvocation, routeRequest, runTest, serveStatic, unBind, willBeValidated
public static java.util.concurrent.ScheduledThreadPoolExecutor executor
public static java.util.List<Job> scheduledJobs
public java.lang.String getStatus()
PlayPlugin
getStatus
in class PlayPlugin
public void afterApplicationStart()
PlayPlugin
afterApplicationStart
in class PlayPlugin
public void onApplicationStart()
PlayPlugin
onApplicationStart
in class PlayPlugin
public static <V> void scheduleForCRON(Job<V> job)
public void onApplicationStop()
PlayPlugin
onApplicationStop
in class PlayPlugin
public void beforeInvocation()
PlayPlugin
beforeInvocation
in class PlayPlugin
public void afterInvocation()
PlayPlugin
afterInvocation
in class PlayPlugin
Guillaume Bort & zenexity - Distributed under Apache 2 licence, without any warrantly