public class WorkExecutorServiceImpl extends java.lang.Object implements WorkExecutorService, WorkExecutionCallback, ObservableExecutor
| Constructor and Description |
|---|
WorkExecutorServiceImpl(BonitaExecutorServiceFactory bonitaExecutorServiceFactory,
TechnicalLoggerService loggerService,
long workTerminationTimeout,
WorkExecutionAuditor workExecutionAuditor) |
| Modifier and Type | Method and Description |
|---|---|
void |
execute(WorkDescriptor work) |
long |
getExecuted() |
long |
getPendings() |
long |
getRunnings() |
boolean |
isStopped() |
void |
notifyNodeStopped(java.lang.String nodeName) |
void |
onFailure(WorkDescriptor work,
BonitaWork bonitaWork,
java.util.Map<java.lang.String,java.lang.Object> context,
java.lang.Throwable thrown) |
void |
onSuccess(WorkDescriptor work) |
void |
pause()
Temporary halt the execution of this service.
|
void |
resume()
resume the execution the service
|
void |
start()
Start the service
|
void |
stop() |
public WorkExecutorServiceImpl(BonitaExecutorServiceFactory bonitaExecutorServiceFactory, TechnicalLoggerService loggerService, long workTerminationTimeout, WorkExecutionAuditor workExecutionAuditor)
public void execute(WorkDescriptor work)
execute in interface WorkExecutorServicepublic void onSuccess(WorkDescriptor work)
onSuccess in interface WorkExecutionCallbackpublic void onFailure(WorkDescriptor work, BonitaWork bonitaWork, java.util.Map<java.lang.String,java.lang.Object> context, java.lang.Throwable thrown)
onFailure in interface WorkExecutionCallbackpublic void stop()
stop in interface LifecycleServicepublic void start()
LifecycleServicestart in interface LifecycleServicepublic void pause()
throws SWorkException
LifecycleServicepause in interface LifecycleServiceSWorkExceptionpublic void resume()
LifecycleServiceresume in interface LifecycleServicepublic boolean isStopped()
isStopped in interface WorkExecutorServicepublic void notifyNodeStopped(java.lang.String nodeName)
notifyNodeStopped in interface WorkExecutorServicepublic long getPendings()
getPendings in interface ObservableExecutorpublic long getRunnings()
getRunnings in interface ObservableExecutorpublic long getExecuted()
getExecuted in interface ObservableExecutor