Class RecoveryHandler
- java.lang.Object
-
- org.bonitasoft.engine.tenant.restart.RecoveryHandler
-
- All Implemented Interfaces:
TenantRestartHandler
@Component public class RecoveryHandler extends java.lang.Object implements TenantRestartHandler
The Recovery handler is responsible for recovering all candidate elements at Engine startup. It is called only once in a cluster startup (handled by TenantElementsRestartSupervisor)
-
-
Constructor Summary
Constructors Constructor Description RecoveryHandler(RecoveryService recoveryService)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidafterServicesStart()called outside of a transaction afterPlatformAPI.startNode()in a separate thread than the api callvoidbeforeServicesStart()called in a transaction duringPlatformAPI.startNode()
-
-
-
Constructor Detail
-
RecoveryHandler
public RecoveryHandler(RecoveryService recoveryService)
-
-
Method Detail
-
beforeServicesStart
public void beforeServicesStart()
Description copied from interface:TenantRestartHandlercalled in a transaction duringPlatformAPI.startNode()- Specified by:
beforeServicesStartin interfaceTenantRestartHandler
-
afterServicesStart
public void afterServicesStart()
Description copied from interface:TenantRestartHandlercalled outside of a transaction afterPlatformAPI.startNode()in a separate thread than the api call- Specified by:
afterServicesStartin interfaceTenantRestartHandler
-
-