Package org.jbpm.executor.impl.jpa
Class ExecutorRequestAdminServiceImpl
- java.lang.Object
-
- org.jbpm.executor.impl.jpa.ExecutorRequestAdminServiceImpl
-
- All Implemented Interfaces:
RequeueAware,org.kie.api.executor.ExecutorAdminService
public class ExecutorRequestAdminServiceImpl extends Object implements org.kie.api.executor.ExecutorAdminService, RequeueAware
Default implementation ofExecutorAdminServicebacked with JPA IMPORTANT: please keep all classes from package org.jbpm.shared.services.impl as FQCN inside method body to avoid exception logged by CDI when used with in memory mode
-
-
Constructor Summary
Constructors Constructor Description ExecutorRequestAdminServiceImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intclearAllErrors()intclearAllRequests()voidrequeue(Long olderThan)MovesRequestInfoinstances that are in running state longer than given amount of time (time unit depends on theorg.kie.executor.timeunitsystem property)voidrequeueById(Long requestId)MovesRequestInfoinstance with given request id that are in running statevoidsetCommandService(org.kie.api.runtime.CommandExecutor commandService)voidsetExecutor(org.kie.api.executor.Executor executor)
-
-
-
Method Detail
-
setCommandService
public void setCommandService(org.kie.api.runtime.CommandExecutor commandService)
-
setExecutor
public void setExecutor(org.kie.api.executor.Executor executor)
-
clearAllRequests
public int clearAllRequests()
- Specified by:
clearAllRequestsin interfaceorg.kie.api.executor.ExecutorAdminService
-
clearAllErrors
public int clearAllErrors()
- Specified by:
clearAllErrorsin interfaceorg.kie.api.executor.ExecutorAdminService
-
requeue
public void requeue(Long olderThan)
Description copied from interface:RequeueAwareMovesRequestInfoinstances that are in running state longer than given amount of time (time unit depends on theorg.kie.executor.timeunitsystem property)- Specified by:
requeuein interfaceRequeueAware- Parameters:
olderThan- amount of time from current time stamp
-
requeueById
public void requeueById(Long requestId)
Description copied from interface:RequeueAwareMovesRequestInfoinstance with given request id that are in running state- Specified by:
requeueByIdin interfaceRequeueAware- Parameters:
requestId- request unique identifier
-
-