Package org.bonitasoft.engine.tenant
Class TenantElementsRestartSupervisorLocal
- java.lang.Object
-
- org.bonitasoft.engine.tenant.TenantElementsRestartSupervisorLocal
-
- All Implemented Interfaces:
LifecycleService,TenantLifecycleService,TenantElementsRestartSupervisor
@Component @ConditionalOnSingleCandidate(TenantElementsRestartSupervisor.class) public class TenantElementsRestartSupervisorLocal extends java.lang.Object implements TenantLifecycleService, TenantElementsRestartSupervisor
-
-
Constructor Summary
Constructors Constructor Description TenantElementsRestartSupervisorLocal()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisResponsibleForRecovery()voidpause()Temporary halt the execution of this service.voidresume()resume the execution the servicebooleanshouldRestartElements()voidstart()Start the servicevoidstop()booleanwillRestartElements()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.bonitasoft.engine.commons.TenantLifecycleService
init
-
-
-
-
Method Detail
-
start
public void start() throws SBonitaExceptionDescription copied from interface:LifecycleServiceStart the service- Specified by:
startin interfaceLifecycleService- Throws:
SBonitaException
-
stop
public void stop()
- Specified by:
stopin interfaceLifecycleService
-
pause
public void pause()
Description copied from interface:LifecycleServiceTemporary halt the execution of this service.- Specified by:
pausein interfaceLifecycleService
-
resume
public void resume()
Description copied from interface:LifecycleServiceresume the execution the service- Specified by:
resumein interfaceLifecycleService
-
shouldRestartElements
public boolean shouldRestartElements()
- Specified by:
shouldRestartElementsin interfaceTenantElementsRestartSupervisor
-
willRestartElements
public boolean willRestartElements()
- Specified by:
willRestartElementsin interfaceTenantElementsRestartSupervisor
-
isResponsibleForRecovery
public boolean isResponsibleForRecovery()
- Specified by:
isResponsibleForRecoveryin interfaceTenantElementsRestartSupervisor
-
-