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 boolean
isResponsibleForRecovery()
void
pause()
Temporary halt the execution of this service.void
resume()
resume the execution the serviceboolean
shouldRestartElements()
void
start()
Start the servicevoid
stop()
boolean
willRestartElements()
-
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 SBonitaException
Description copied from interface:LifecycleService
Start the service- Specified by:
start
in interfaceLifecycleService
- Throws:
SBonitaException
-
stop
public void stop()
- Specified by:
stop
in interfaceLifecycleService
-
pause
public void pause()
Description copied from interface:LifecycleService
Temporary halt the execution of this service.- Specified by:
pause
in interfaceLifecycleService
-
resume
public void resume()
Description copied from interface:LifecycleService
resume the execution the service- Specified by:
resume
in interfaceLifecycleService
-
shouldRestartElements
public boolean shouldRestartElements()
- Specified by:
shouldRestartElements
in interfaceTenantElementsRestartSupervisor
-
willRestartElements
public boolean willRestartElements()
- Specified by:
willRestartElements
in interfaceTenantElementsRestartSupervisor
-
isResponsibleForRecovery
public boolean isResponsibleForRecovery()
- Specified by:
isResponsibleForRecovery
in interfaceTenantElementsRestartSupervisor
-
-