Class PlatformAPIImpl

java.lang.Object
org.bonitasoft.engine.api.impl.PlatformAPIImpl
All Implemented Interfaces:
org.bonitasoft.engine.api.PlatformAPI

public class PlatformAPIImpl extends 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 Details

    • PlatformAPIImpl

      public PlatformAPIImpl()
  • Method Details

    • initializePlatform

      public void initializePlatform()
      Specified by:
      initializePlatform in interface org.bonitasoft.engine.api.PlatformAPI
    • 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
    • startNode

      public void startNode() throws org.bonitasoft.engine.platform.StartNodeException
      Specified by:
      startNode in interface org.bonitasoft.engine.api.PlatformAPI
      Throws:
      org.bonitasoft.engine.platform.StartNodeException
    • stopNode

      public void stopNode() throws org.bonitasoft.engine.platform.StopNodeException
      Specified by:
      stopNode in interface org.bonitasoft.engine.api.PlatformAPI
      Throws:
      org.bonitasoft.engine.platform.StopNodeException
    • getPlatform

      public org.bonitasoft.engine.platform.Platform getPlatform() throws org.bonitasoft.engine.platform.PlatformNotFoundException
      Specified by:
      getPlatform in interface org.bonitasoft.engine.api.PlatformAPI
      Throws:
      org.bonitasoft.engine.platform.PlatformNotFoundException
    • isPlatformCreated

      public boolean isPlatformCreated()
      Specified by:
      isPlatformCreated in interface org.bonitasoft.engine.api.PlatformAPI
    • getPlatformState

      public org.bonitasoft.engine.platform.PlatformState getPlatformState()
      Specified by:
      getPlatformState in interface org.bonitasoft.engine.api.PlatformAPI
    • isNodeStarted

      public boolean isNodeStarted()
      Specified by:
      isNodeStarted in interface org.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:
      rescheduleErroneousTriggers in interface org.bonitasoft.engine.api.PlatformAPI
      Throws:
      org.bonitasoft.engine.exception.UpdateException
    • getClientPlatformConfigurations

      public Map<String,byte[]> getClientPlatformConfigurations()
      Specified by:
      getClientPlatformConfigurations in interface org.bonitasoft.engine.api.PlatformAPI
    • getClientTenantConfigurations

      public Map<String,byte[]> getClientTenantConfigurations()
      Specified by:
      getClientTenantConfigurations in interface org.bonitasoft.engine.api.PlatformAPI
    • getClientTenantConfiguration

      public byte[] getClientTenantConfiguration(String file)
      Specified by:
      getClientTenantConfiguration in interface org.bonitasoft.engine.api.PlatformAPI
    • getBonitaHomeServer

      protected BonitaHomeServer getBonitaHomeServer()
    • updateClientTenantConfigurationFile

      public void updateClientTenantConfigurationFile(String file, byte[] content) throws org.bonitasoft.engine.exception.UpdateException
      Specified by:
      updateClientTenantConfigurationFile in interface org.bonitasoft.engine.api.PlatformAPI
      Throws:
      org.bonitasoft.engine.exception.UpdateException