public class WorkExecutorServiceImpl extends Object implements WorkExecutorService, WorkExecutionCallback
| Constructor and Description |
|---|
WorkExecutorServiceImpl(BonitaExecutorServiceFactory bonitaExecutorServiceFactory,
TechnicalLoggerService loggerService,
long workTerminationTimeout) |
| Modifier and Type | Method and Description |
|---|---|
void |
execute(WorkDescriptor work) |
boolean |
isStopped() |
void |
notifyNodeStopped(String nodeName) |
void |
onFailure(WorkDescriptor work,
BonitaWork bonitaWork,
Map<String,Object> context,
Exception thrown) |
void |
onSuccess(WorkDescriptor work) |
void |
pause() |
void |
resume() |
void |
start() |
void |
stop() |
public WorkExecutorServiceImpl(BonitaExecutorServiceFactory bonitaExecutorServiceFactory, TechnicalLoggerService loggerService, long workTerminationTimeout)
public void execute(WorkDescriptor work)
execute in interface WorkExecutorServicepublic void onSuccess(WorkDescriptor work)
onSuccess in interface WorkExecutionCallbackpublic void onFailure(WorkDescriptor work, BonitaWork bonitaWork, Map<String,Object> context, Exception thrown)
onFailure in interface WorkExecutionCallbackpublic void stop()
stop in interface org.bonitasoft.engine.commons.LifecycleServicepublic void start()
start in interface org.bonitasoft.engine.commons.LifecycleServicepublic void pause()
throws SWorkException
pause in interface org.bonitasoft.engine.commons.LifecycleServiceSWorkExceptionpublic void resume()
resume in interface org.bonitasoft.engine.commons.LifecycleServicepublic boolean isStopped()
isStopped in interface WorkExecutorServicepublic void notifyNodeStopped(String nodeName)
notifyNodeStopped in interface WorkExecutorServiceCopyright © 2018 Bonitasoft S.A.. All rights reserved.