Package org.bonitasoft.engine.scheduler
Interface StatelessJob
- All Superinterfaces:
Serializable
- All Known Implementing Classes:
InternalJob,JobWrapper,TriggerTimerEventJob
Interface of a scheduled job. A job is classified using a name and a group name. A job has a unique name and group
name. It
fires the following events :
- JOB_EXECUTING = "JOB_EXECUTING"
- JOB_COMPLETED = "JOB_COMPLETED"
- Author:
- Matthieu Chaffotte
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoidexecute()Execute the content of the job.Gets the description of the job.getName()Gets the job name.voidsetAttributes(Map<String, Serializable> attributes) This method is called by the scheduler service before the execution of the job
-
Field Details
-
JOB_EXECUTING
- See Also:
-
JOB_COMPLETED
- See Also:
-
JOB_DESCRIPTOR_ID
- See Also:
-
-
Method Details
-
getName
String getName()Gets the job name.- Returns:
- the job name
- Since:
- 6.0
-
getDescription
String getDescription()Gets the description of the job.- Returns:
- the job description
- Since:
- 6.0
-
execute
Execute the content of the job.- Throws:
SJobExecutionException- if an exception occursSFireEventException- Since:
- 6.0
-
setAttributes
This method is called by the scheduler service before the execution of the job- Parameters:
attributes- key is the name of the attribute value is the value of the attribute- Throws:
SJobConfigurationException- Since:
- 6.0
-