public interface GrailsJobClass extends GrailsClass
Represents a job class in Grails.
| Type Params | Return Type | Name and description |
|---|---|---|
|
public void |
execute()Method which is executed by the job scheduler. |
|
public java.lang.String |
getDescription()Get job's description used for configuring job details. |
|
public java.lang.String |
getGroup()Get group name used for configuring scheduler. |
|
public java.util.Map |
getTriggers() |
|
public boolean |
isConcurrent()If jobs can be executed concurrently returns true. |
|
public boolean |
isDurability()If job is durable returns true. |
|
public boolean |
isEnabled()If job should be enabled or at all. |
|
public boolean |
isRequestsRecovery()If job should be re-executed if a 'recovery' or 'fail-over' situation is encountered returns true. |
|
public boolean |
isSessionRequired()If job requires Hibernate Session bounded to thread returns true. |
| Methods inherited from class | Name |
|---|---|
interface GrailsClass |
getApplication, getClazz, getFullName, getLogicalPropertyName, getMetaClass, getName, getNaturalName, getPackageName, getPluginName, getPropertyName, getPropertyValue, getPropertyValue, getReferenceInstance, getShortName, hasProperty, isAbstract, newInstance |
interface GrailsApplicationAware |
setGrailsApplication |
Method which is executed by the job scheduler.
Get job's description used for configuring job details.
Get group name used for configuring scheduler.
If jobs can be executed concurrently returns true.
If job is durable returns true.
If job should be enabled or at all. Useful for testing new jobs and temporarily disabling jobs at the class property level
If job should be re-executed if a 'recovery' or 'fail-over' situation is encountered returns true.
If job requires Hibernate Session bounded to thread returns true.