Class JobWrapper
java.lang.Object
org.bonitasoft.engine.scheduler.impl.JobWrapper
- All Implemented Interfaces:
Serializable,StatelessJob
- Author:
- Matthieu Chaffotte, Celine Souchet
- See Also:
-
Field Summary
Fields inherited from interface org.bonitasoft.engine.scheduler.StatelessJob
JOB_COMPLETED, JOB_DESCRIPTOR_ID, JOB_EXECUTING -
Constructor Summary
ConstructorsConstructorDescriptionJobWrapper(JobIdentifier jobIdentifier, StatelessJob statelessJob, EventService eventService, TransactionService transactionService, PersistenceService persistenceService, JobService jobService) -
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
-
Constructor Details
-
JobWrapper
public JobWrapper(JobIdentifier jobIdentifier, StatelessJob statelessJob, EventService eventService, TransactionService transactionService, PersistenceService persistenceService, JobService jobService)
-
-
Method Details
-
getName
Description copied from interface:StatelessJobGets the job name.- Specified by:
getNamein interfaceStatelessJob- Returns:
- the job name
-
getDescription
Description copied from interface:StatelessJobGets the description of the job.- Specified by:
getDescriptionin interfaceStatelessJob- Returns:
- the job description
-
execute
Description copied from interface:StatelessJobExecute the content of the job.- Specified by:
executein interfaceStatelessJob- Throws:
SJobExecutionException- if an exception occursSFireEventException
-
setAttributes
Description copied from interface:StatelessJobThis method is called by the scheduler service before the execution of the job- Specified by:
setAttributesin interfaceStatelessJob- Parameters:
attributes- key is the name of the attribute value is the value of the attribute- Throws:
SJobConfigurationException
-
getStatelessJob
-