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 a transaction afterPlatformAPI.startNode()in a separate thread from the api call.voidbeforeServicesStart()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 a transaction afterPlatformAPI.startNode()in a separate thread from the api call.- Specified by:
afterServicesStartin interfaceTenantRestartHandler
-
-