public class JobWrapper extends Object implements StatelessJob
JOB_COMPLETED, JOB_DESCRIPTOR_ID, JOB_EXECUTING| Constructor and Description |
|---|
JobWrapper(JobIdentifier jobIdentifier,
StatelessJob statelessJob,
TechnicalLoggerService logger,
long tenantId,
EventService eventService,
SessionAccessor sessionAccessor,
TransactionService transactionService,
PersistenceService persistenceService,
JobService jobService) |
| Modifier and Type | Method and Description |
|---|---|
void |
execute()
Execute the content of the job.
|
String |
getDescription()
Gets the description of the job.
|
String |
getName()
Gets the job name.
|
StatelessJob |
getStatelessJob() |
void |
setAttributes(Map<String,Serializable> attributes)
This method is called by the scheduler service before the execution of the job
|
public JobWrapper(JobIdentifier jobIdentifier, StatelessJob statelessJob, TechnicalLoggerService logger, long tenantId, EventService eventService, SessionAccessor sessionAccessor, TransactionService transactionService, PersistenceService persistenceService, JobService jobService)
public String getName()
StatelessJobgetName in interface StatelessJobpublic String getDescription()
StatelessJobgetDescription in interface StatelessJobpublic void execute()
throws SJobExecutionException,
SFireEventException
StatelessJobexecute in interface StatelessJobSJobExecutionException - if an exception occursSFireEventExceptionpublic void setAttributes(Map<String,Serializable> attributes) throws SJobConfigurationException
StatelessJobsetAttributes in interface StatelessJobattributes - key is the name of the attribute
value is the value of the attributeSJobConfigurationExceptionpublic StatelessJob getStatelessJob()
Copyright © 2018 Bonitasoft S.A.. All rights reserved.