Class TenantStateManager

java.lang.Object
org.bonitasoft.engine.tenant.TenantStateManager

@Component public class TenantStateManager extends Object
  • Constructor Details

  • Method Details

    • stop

      public void stop() throws Exception
      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

      public void start() throws Exception
      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.BonitaHomeNotSetException
      IOException
      org.bonitasoft.engine.exception.BonitaHomeConfigurationException
      ReflectiveOperationException
    • pause

      public void pause() throws Exception
      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

      public void resume() throws Exception
      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

      public boolean isPaused() throws Exception
      Throws:
      Exception