public class JobWrapper extends java.lang.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.
|
java.lang.String |
getDescription()
Gets the description of the job.
|
java.lang.String |
getName()
Gets the job name.
|
StatelessJob |
getStatelessJob() |
void |
setAttributes(java.util.Map<java.lang.String,java.io.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 java.lang.String getName()
StatelessJobgetName in interface StatelessJobpublic java.lang.String getDescription()
StatelessJobgetDescription in interface StatelessJobpublic void execute()
throws SJobExecutionException,
SFireEventException
StatelessJobexecute in interface StatelessJobSJobExecutionException - if an exception occursSFireEventExceptionpublic void setAttributes(java.util.Map<java.lang.String,java.io.Serializable> attributes)
throws SJobConfigurationException
StatelessJobsetAttributes in interface StatelessJobattributes - key is the name of the attribute
value is the value of the attributeSJobConfigurationExceptionpublic StatelessJob getStatelessJob()