org.bonitasoft.engine.api.impl
public class PlatformAPIImpl extends Object implements PlatformAPI
| Constructor and Description |
|---|
PlatformAPIImpl() |
PlatformAPIImpl(PlatformAPIImplDelegate delegate) |
| Modifier and Type | Method and Description |
|---|---|
void |
cleanAndDeletePlaftorm() |
void |
cleanPlatform() |
protected void |
cleanSessionAccessor(org.bonitasoft.engine.sessionaccessor.SessionAccessor sessionAccessor,
long platformSessionId) |
void |
createAndInitializePlatform() |
protected void |
createDefaultCommands(TenantServiceAccessor tenantServiceAccessor) |
protected void |
createDefaultDataSource(TenantServiceAccessor tenantServiceAccessor) |
protected void |
createDefaultProfiles(TenantServiceAccessor tenantServiceAccessor) |
void |
createPlatform() |
protected Long |
createSession(long tenantId,
SessionService sessionService) |
void |
deletePlatform() |
protected PlatformAPIImplDelegate |
getDelegate() |
Platform |
getPlatform() |
protected PlatformServiceAccessor |
getPlatformAccessor() |
PlatformState |
getPlatformState() |
protected String |
getProfileFileName() |
protected TenantServiceAccessor |
getTenantServiceAccessor(long tenantId) |
void |
initializePlatform() |
boolean |
isNodeStarted() |
boolean |
isPlatformCreated() |
void |
rescheduleErroneousTriggers() |
void |
startNode() |
void |
stopNode() |
protected void |
stopServicesOfTenant(org.bonitasoft.engine.log.technical.TechnicalLoggerService logger,
long tenantId,
TenantServiceAccessor tenantServiceAccessor) |
public PlatformAPIImpl()
public PlatformAPIImpl(PlatformAPIImplDelegate delegate)
protected PlatformAPIImplDelegate getDelegate()
public void createPlatform()
throws CreationException
createPlatform in interface PlatformAPICreationExceptionpublic void initializePlatform()
throws CreationException
initializePlatform in interface PlatformAPICreationExceptionpublic void createAndInitializePlatform()
throws CreationException
createAndInitializePlatform in interface PlatformAPICreationExceptionprotected PlatformServiceAccessor getPlatformAccessor() throws BonitaHomeNotSetException, InstantiationException, IllegalAccessException, ClassNotFoundException, IOException, BonitaHomeConfigurationException
public void startNode()
throws StartNodeException
startNode in interface PlatformAPIStartNodeExceptionprotected TenantServiceAccessor getTenantServiceAccessor(long tenantId) throws org.bonitasoft.engine.commons.exceptions.SBonitaException, BonitaHomeNotSetException, IOException, BonitaHomeConfigurationException, NoSuchMethodException, InstantiationException, IllegalAccessException, InvocationTargetException
org.bonitasoft.engine.commons.exceptions.SBonitaExceptionBonitaHomeNotSetExceptionIOExceptionBonitaHomeConfigurationExceptionNoSuchMethodExceptionInstantiationExceptionIllegalAccessExceptionInvocationTargetExceptionpublic void stopNode()
throws StopNodeException
stopNode in interface PlatformAPIStopNodeExceptionprotected void stopServicesOfTenant(org.bonitasoft.engine.log.technical.TechnicalLoggerService logger,
long tenantId,
TenantServiceAccessor tenantServiceAccessor)
throws org.bonitasoft.engine.commons.exceptions.SBonitaException,
TimeoutException
org.bonitasoft.engine.commons.exceptions.SBonitaExceptionTimeoutExceptionpublic void cleanPlatform()
throws DeletionException
cleanPlatform in interface PlatformAPIDeletionExceptionpublic void deletePlatform()
throws DeletionException
deletePlatform in interface PlatformAPIDeletionExceptionpublic void cleanAndDeletePlaftorm()
throws DeletionException
cleanAndDeletePlaftorm in interface PlatformAPIDeletionExceptionpublic Platform getPlatform() throws PlatformNotFoundException
getPlatform in interface PlatformAPIPlatformNotFoundExceptionprotected void createDefaultProfiles(TenantServiceAccessor tenantServiceAccessor) throws Exception
Exceptionprotected void cleanSessionAccessor(org.bonitasoft.engine.sessionaccessor.SessionAccessor sessionAccessor,
long platformSessionId)
protected void createDefaultCommands(TenantServiceAccessor tenantServiceAccessor) throws SCommandAlreadyExistsException, SCommandCreationException
protected void createDefaultDataSource(TenantServiceAccessor tenantServiceAccessor) throws org.bonitasoft.engine.data.SDataSourceAlreadyExistException, org.bonitasoft.engine.data.SDataException
org.bonitasoft.engine.data.SDataSourceAlreadyExistExceptionorg.bonitasoft.engine.data.SDataExceptionprotected Long createSession(long tenantId, SessionService sessionService) throws org.bonitasoft.engine.commons.exceptions.SBonitaException
org.bonitasoft.engine.commons.exceptions.SBonitaExceptionpublic boolean isPlatformCreated()
throws PlatformNotFoundException
isPlatformCreated in interface PlatformAPIPlatformNotFoundExceptionpublic PlatformState getPlatformState()
getPlatformState in interface PlatformAPIpublic boolean isNodeStarted()
isNodeStarted in interface PlatformAPIprotected String getProfileFileName()
public void rescheduleErroneousTriggers()
throws UpdateException
rescheduleErroneousTriggers in interface PlatformAPIUpdateExceptionCopyright © 2014 Bonitasoft S.A.. All Rights Reserved.