Class PlatformManager


  • @Component
    public class PlatformManager
    extends java.lang.Object
    Handle the lifecycle of the platform: start, stop.
    • Method Detail

      • getState

        public org.bonitasoft.engine.platform.PlatformState getState()
        Returns:
        the current state of the platform
      • stop

        public boolean stop()
                     throws java.lang.Exception
        Stop the platform and default tenant
        Returns:
        true if the node was stopped, false if it was not stoppable (already stopped, starting or stopping)
        Throws:
        java.lang.Exception
      • start

        public boolean start()
                      throws java.lang.Exception
        Start the platform and default tenant
        Returns:
        true if the node was started, false if it was not startable (already started, starting or stopping)
        Throws:
        java.lang.Exception
      • activateTenant

        public void activateTenant​(long tenantId)
                            throws java.lang.Exception
        Throws:
        java.lang.Exception
      • deactivateTenant

        public void deactivateTenant​(long tenantId)
                              throws java.lang.Exception
        Throws:
        java.lang.Exception