public class WorkExecutorServiceImpl extends Object implements WorkExecutorService, WorkExecutionCallback, org.bonitasoft.engine.monitoring.ObservableExecutor
| Constructor and Description |
|---|
WorkExecutorServiceImpl(BonitaExecutorServiceFactory bonitaExecutorServiceFactory,
TechnicalLoggerService loggerService,
long workTerminationTimeout) |
| Modifier and Type | Method and Description |
|---|---|
void |
execute(WorkDescriptor work) |
long |
getExecuted() |
long |
getPendings() |
long |
getRunnings() |
boolean |
isStopped() |
void |
notifyNodeStopped(String nodeName) |
void |
onFailure(WorkDescriptor work,
BonitaWork bonitaWork,
Map<String,Object> context,
Throwable 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, Throwable 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 WorkExecutorServicepublic long getPendings()
getPendings in interface org.bonitasoft.engine.monitoring.ObservableExecutorpublic long getRunnings()
getRunnings in interface org.bonitasoft.engine.monitoring.ObservableExecutorpublic long getExecuted()
getExecuted in interface org.bonitasoft.engine.monitoring.ObservableExecutorCopyright © 2018 Bonitasoft S.A.. All rights reserved.