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,
int workTerminationTimeout) |
| Modifier and Type | Method and Description |
|---|---|
void |
executeWork(org.bonitasoft.engine.work.BonitaWork work) |
boolean |
isStopped() |
void |
notifyNodeStopped(String nodeName) |
void |
pause() |
void |
registerWork(org.bonitasoft.engine.work.BonitaWork work) |
void |
resume() |
void |
start() |
void |
stop() |
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,
int workTerminationTimeout)
transactionService - workSynchronizationFactory - loggerService - sessionAccessor - bonitaExecutorServiceFactory - workTerminationTimeout - time in secondes to wait for works to finishpublic void registerWork(org.bonitasoft.engine.work.BonitaWork work)
throws org.bonitasoft.engine.work.SWorkRegisterException
registerWork in interface org.bonitasoft.engine.work.WorkServiceorg.bonitasoft.engine.work.SWorkRegisterExceptionpublic void executeWork(org.bonitasoft.engine.work.BonitaWork work)
throws org.bonitasoft.engine.work.SWorkRegisterException
executeWork in interface org.bonitasoft.engine.work.WorkServiceorg.bonitasoft.engine.work.SWorkRegisterExceptionpublic boolean isStopped()
isStopped in interface org.bonitasoft.engine.work.WorkServicepublic void stop()
stop in interface org.bonitasoft.engine.commons.LifecycleServicepublic void start()
start in interface org.bonitasoft.engine.commons.LifecycleServicepublic void pause()
throws org.bonitasoft.engine.work.SWorkException
pause in interface org.bonitasoft.engine.commons.LifecycleServiceorg.bonitasoft.engine.work.SWorkExceptionpublic void resume()
resume in interface org.bonitasoft.engine.commons.LifecycleServicepublic void notifyNodeStopped(String nodeName)
notifyNodeStopped in interface org.bonitasoft.engine.work.WorkServiceCopyright © 2014 Bonitasoft S.A.. All rights reserved.