Package org.bonitasoft.engine.api.impl
Class PlatformAPIImpl
- java.lang.Object
-
- org.bonitasoft.engine.api.impl.PlatformAPIImpl
-
- All Implemented Interfaces:
org.bonitasoft.engine.api.PlatformAPI
public class PlatformAPIImpl extends java.lang.Object implements org.bonitasoft.engine.api.PlatformAPI- Author:
- Matthieu Chaffotte, Elias Ricken de Medeiros, Lu Kai, Zhang Bole, Yanyan Liu, Emmanuel Duchastenier, Celine Souchet
-
-
Constructor Summary
Constructors Constructor Description PlatformAPIImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcleanPlatform()protected BonitaHomeServergetBonitaHomeServer()java.util.Map<java.lang.String,byte[]>getClientPlatformConfigurations()byte[]getClientTenantConfiguration(long tenantId, java.lang.String file)java.util.Map<java.lang.Long,java.util.Map<java.lang.String,byte[]>>getClientTenantConfigurations()org.bonitasoft.engine.platform.PlatformgetPlatform()protected PlatformServiceAccessorgetPlatformAccessor()org.bonitasoft.engine.platform.PlatformStategetPlatformState()voidinitializePlatform()booleanisNodeStarted()booleanisPlatformCreated()booleanisPlatformInitialized()voidrescheduleErroneousTriggers()voidstartNode()voidstopNode()voidupdateClientTenantConfigurationFile(long tenantId, java.lang.String file, byte[] content)
-
-
-
Method Detail
-
initializePlatform
public void initializePlatform()
- Specified by:
initializePlatformin interfaceorg.bonitasoft.engine.api.PlatformAPI
-
getPlatformAccessor
protected PlatformServiceAccessor getPlatformAccessor() throws org.bonitasoft.engine.exception.BonitaHomeNotSetException, java.lang.InstantiationException, java.lang.IllegalAccessException, java.lang.ClassNotFoundException, java.io.IOException, org.bonitasoft.engine.exception.BonitaHomeConfigurationException
- Throws:
org.bonitasoft.engine.exception.BonitaHomeNotSetExceptionjava.lang.InstantiationExceptionjava.lang.IllegalAccessExceptionjava.lang.ClassNotFoundExceptionjava.io.IOExceptionorg.bonitasoft.engine.exception.BonitaHomeConfigurationException
-
startNode
public void startNode() throws org.bonitasoft.engine.platform.StartNodeException- Specified by:
startNodein interfaceorg.bonitasoft.engine.api.PlatformAPI- Throws:
org.bonitasoft.engine.platform.StartNodeException
-
stopNode
public void stopNode() throws org.bonitasoft.engine.platform.StopNodeException- Specified by:
stopNodein interfaceorg.bonitasoft.engine.api.PlatformAPI- Throws:
org.bonitasoft.engine.platform.StopNodeException
-
cleanPlatform
public void cleanPlatform() throws org.bonitasoft.engine.exception.DeletionException- Specified by:
cleanPlatformin interfaceorg.bonitasoft.engine.api.PlatformAPI- Throws:
org.bonitasoft.engine.exception.DeletionException
-
getPlatform
public org.bonitasoft.engine.platform.Platform getPlatform() throws org.bonitasoft.engine.platform.PlatformNotFoundException- Specified by:
getPlatformin interfaceorg.bonitasoft.engine.api.PlatformAPI- Throws:
org.bonitasoft.engine.platform.PlatformNotFoundException
-
isPlatformInitialized
public boolean isPlatformInitialized() throws org.bonitasoft.engine.platform.PlatformNotFoundException- Specified by:
isPlatformInitializedin interfaceorg.bonitasoft.engine.api.PlatformAPI- Throws:
org.bonitasoft.engine.platform.PlatformNotFoundException
-
isPlatformCreated
public boolean isPlatformCreated()
- Specified by:
isPlatformCreatedin interfaceorg.bonitasoft.engine.api.PlatformAPI
-
getPlatformState
public org.bonitasoft.engine.platform.PlatformState getPlatformState()
- Specified by:
getPlatformStatein interfaceorg.bonitasoft.engine.api.PlatformAPI
-
isNodeStarted
public boolean isNodeStarted()
- Specified by:
isNodeStartedin interfaceorg.bonitasoft.engine.api.PlatformAPI- Returns:
- true if the current node is started, false otherwise
-
rescheduleErroneousTriggers
public void rescheduleErroneousTriggers() throws org.bonitasoft.engine.exception.UpdateException- Specified by:
rescheduleErroneousTriggersin interfaceorg.bonitasoft.engine.api.PlatformAPI- Throws:
org.bonitasoft.engine.exception.UpdateException
-
getClientPlatformConfigurations
public java.util.Map<java.lang.String,byte[]> getClientPlatformConfigurations()
- Specified by:
getClientPlatformConfigurationsin interfaceorg.bonitasoft.engine.api.PlatformAPI
-
getClientTenantConfigurations
public java.util.Map<java.lang.Long,java.util.Map<java.lang.String,byte[]>> getClientTenantConfigurations()
- Specified by:
getClientTenantConfigurationsin interfaceorg.bonitasoft.engine.api.PlatformAPI
-
getClientTenantConfiguration
public byte[] getClientTenantConfiguration(long tenantId, java.lang.String file)- Specified by:
getClientTenantConfigurationin interfaceorg.bonitasoft.engine.api.PlatformAPI
-
getBonitaHomeServer
protected BonitaHomeServer getBonitaHomeServer()
-
updateClientTenantConfigurationFile
public void updateClientTenantConfigurationFile(long tenantId, java.lang.String file, byte[] content) throws org.bonitasoft.engine.exception.UpdateException- Specified by:
updateClientTenantConfigurationFilein interfaceorg.bonitasoft.engine.api.PlatformAPI- Throws:
org.bonitasoft.engine.exception.UpdateException
-
-