Package org.bonitasoft.engine.tenant
Class TenantStateManager
java.lang.Object
org.bonitasoft.engine.tenant.TenantStateManager
-
Constructor Summary
ConstructorsConstructorDescriptionTenantStateManager(UserTransactionService transactionService, PlatformService platformService, NodeConfiguration nodeConfiguration, SessionService sessionService, SchedulerService schedulerService, BroadcastService broadcastService, TenantServicesManager tenantServicesManager) -
Method Summary
Modifier and TypeMethodDescription<T> TexecuteManagementOperation(String operationName, Callable<T> operation) protected ServiceAccessorbooleanisPaused()voidpause()Pause the platform: - pause services - platform has the status PAUSED in database - other nodes pause the services **Called outside a transaction with a platform-level session**voidresume()Resume the platform: - resume services - platform has the status ACTIVATED in database - other nodes resume the services **Called outside a transaction with a platform-level session**voidstart()Start the platform: - start services - resume elements if its the only node **Called outside of a transaction in a platform-level session**voidstop()Stop the platform: - stop services - delete session if its the only node **Called outside of a transaction in a platform-level session**
-
Constructor Details
-
TenantStateManager
public TenantStateManager(UserTransactionService transactionService, PlatformService platformService, NodeConfiguration nodeConfiguration, SessionService sessionService, SchedulerService schedulerService, BroadcastService broadcastService, TenantServicesManager tenantServicesManager)
-
-
Method Details
-
stop
Stop the platform: - stop services - delete session if its the only node **Called outside of a transaction in a platform-level session**- Throws:
Exception
-
start
Start the platform: - start services - resume elements if its the only node **Called outside of a transaction in a platform-level session**- Throws:
Exception
-
getServiceAccessor
protected ServiceAccessor getServiceAccessor() throws org.bonitasoft.engine.exception.BonitaHomeNotSetException, IOException, org.bonitasoft.engine.exception.BonitaHomeConfigurationException, ReflectiveOperationException- Throws:
org.bonitasoft.engine.exception.BonitaHomeNotSetExceptionIOExceptionorg.bonitasoft.engine.exception.BonitaHomeConfigurationExceptionReflectiveOperationException
-
pause
Pause the platform: - pause services - platform has the status PAUSED in database - other nodes pause the services **Called outside a transaction with a platform-level session**- Throws:
Exception
-
resume
Resume the platform: - resume services - platform has the status ACTIVATED in database - other nodes resume the services **Called outside a transaction with a platform-level session**- Throws:
Exception
-
executeManagementOperation
public <T> T executeManagementOperation(String operationName, Callable<T> operation) throws Exception - Throws:
Exception
-
isPaused
- Throws:
Exception
-