org.bonitasoft.engine.work
public class ExecutorWorkService extends Object implements org.bonitasoft.engine.work.WorkService
| Constructor and Description |
|---|
ExecutorWorkService(org.bonitasoft.engine.transaction.TransactionService transactionService,
WorkSynchronizationFactory workSynchronizationFactory,
org.bonitasoft.engine.log.technical.TechnicalLoggerService loggerService,
org.bonitasoft.engine.sessionaccessor.SessionAccessor sessionAccessor,
BonitaExecutorServiceFactory bonitaExecutorServiceFactory) |
| Modifier and Type | Method and Description |
|---|---|
void |
executeWork(org.bonitasoft.engine.work.BonitaWork work) |
boolean |
isStopped(long tenantId) |
void |
registerWork(org.bonitasoft.engine.work.BonitaWork work) |
void |
start() |
void |
start(Long tenantId) |
void |
stop() |
void |
stop(Long tenantId) |
public ExecutorWorkService(org.bonitasoft.engine.transaction.TransactionService transactionService,
WorkSynchronizationFactory workSynchronizationFactory,
org.bonitasoft.engine.log.technical.TechnicalLoggerService loggerService,
org.bonitasoft.engine.sessionaccessor.SessionAccessor sessionAccessor,
BonitaExecutorServiceFactory bonitaExecutorServiceFactory)
public void registerWork(org.bonitasoft.engine.work.BonitaWork work)
throws org.bonitasoft.engine.work.WorkRegisterException
registerWork in interface org.bonitasoft.engine.work.WorkServiceorg.bonitasoft.engine.work.WorkRegisterExceptionpublic void executeWork(org.bonitasoft.engine.work.BonitaWork work)
throws org.bonitasoft.engine.work.WorkRegisterException
executeWork in interface org.bonitasoft.engine.work.WorkServiceorg.bonitasoft.engine.work.WorkRegisterExceptionpublic void stop(Long tenantId)
stop in interface org.bonitasoft.engine.work.WorkServicepublic void start(Long tenantId)
start in interface org.bonitasoft.engine.work.WorkServicepublic boolean isStopped(long tenantId)
public void stop()
stop in interface org.bonitasoft.engine.commons.ServiceWithLifecyclestop in interface org.bonitasoft.engine.work.WorkServicepublic void start()
start in interface org.bonitasoft.engine.commons.ServiceWithLifecyclestart in interface org.bonitasoft.engine.work.WorkServiceCopyright © 2014 Bonitasoft S.A.. All Rights Reserved.