Package org.bonitasoft.engine.platform
Class PlatformManager
- java.lang.Object
-
- org.bonitasoft.engine.platform.PlatformManager
-
@Component public class PlatformManager extends java.lang.ObjectHandle the lifecycle of the platform: start, stop.
-
-
Constructor Summary
Constructors Constructor Description PlatformManager(NodeConfiguration nodeConfiguration, UserTransactionService transactionService, PlatformService platformService, java.util.List<PlatformLifecycleService> platformServices, PlatformStateProvider platformStateProvider, BonitaTaskExecutor bonitaTaskExecutor, PlatformVersionChecker platformVersionChecker)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidactivateTenant(long tenantId)voiddeactivateTenant(long tenantId)org.bonitasoft.engine.platform.PlatformStategetState()booleanstart()Start the platform and its tenantsbooleanstop()Stop the platform and its tenants
-
-
-
Constructor Detail
-
PlatformManager
public PlatformManager(NodeConfiguration nodeConfiguration, UserTransactionService transactionService, PlatformService platformService, java.util.List<PlatformLifecycleService> platformServices, PlatformStateProvider platformStateProvider, BonitaTaskExecutor bonitaTaskExecutor, PlatformVersionChecker platformVersionChecker)
-
-
Method Detail
-
getState
public org.bonitasoft.engine.platform.PlatformState getState()
- Returns:
- the current state of the platform
-
stop
public boolean stop() throws java.lang.ExceptionStop the platform and its tenants- 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.ExceptionStart the platform and its tenants- 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
-
-