Package org.bonitasoft.engine.platform
Class PlatformManager
java.lang.Object
org.bonitasoft.engine.platform.PlatformManager
Handle the lifecycle of the platform: start, stop.
-
Constructor Summary
ConstructorsConstructorDescriptionPlatformManager(NodeConfiguration nodeConfiguration, List<PlatformLifecycleService> platformServices, PlatformStateProvider platformStateProvider, BonitaTaskExecutor bonitaTaskExecutor, PlatformVersionChecker platformVersionChecker) -
Method Summary
-
Constructor Details
-
PlatformManager
public PlatformManager(NodeConfiguration nodeConfiguration, List<PlatformLifecycleService> platformServices, PlatformStateProvider platformStateProvider, BonitaTaskExecutor bonitaTaskExecutor, PlatformVersionChecker platformVersionChecker)
-
-
Method Details
-
getState
public org.bonitasoft.engine.platform.PlatformState getState()- Returns:
- the current state of the platform
-
stop
Stop the platform- Returns:
- true if the node was stopped, false if it was not stoppable (already stopped, starting or stopping)
- Throws:
Exception
-
start
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:
Exception
-