public class PlatformAPIImpl extends Object implements PlatformAPI
| Constructor and Description |
|---|
PlatformAPIImpl() |
| 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(CommandService commandService,
org.bonitasoft.engine.command.model.SCommandBuilder commandBuilder,
DefaultCommandProvider provider) |
protected void |
createDefaultDataSource(org.bonitasoft.engine.data.model.builder.SDataSourceModelBuilder sDataSourceModelBuilder,
org.bonitasoft.engine.data.DataService dataService) |
protected void |
createDefaultProfiles(Long tenantId,
Parser parser,
ProfileService profileService,
IdentityService identityService,
org.bonitasoft.engine.log.technical.TechnicalLoggerService logger) |
void |
createPlatform() |
protected Long |
createSession(long tenantId,
SessionService sessionService) |
void |
deletePlatform() |
Platform |
getPlatform() |
protected PlatformServiceAccessor |
getPlatformAccessor() |
PlatformState |
getPlatformState() |
protected String |
getProfileFileName() |
protected TenantServiceAccessor |
getTenantServiceAccessor(long tenantId) |
void |
initializePlatform() |
boolean |
isNodeStarted() |
boolean |
isPlatformCreated() |
void |
startNode() |
void |
stopNode() |
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 PlatformAPIStopNodeExceptionpublic 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(Long tenantId, Parser parser, ProfileService profileService, IdentityService identityService, org.bonitasoft.engine.log.technical.TechnicalLoggerService logger) throws Exception
Exceptionprotected String getProfileFileName()
protected void cleanSessionAccessor(org.bonitasoft.engine.sessionaccessor.SessionAccessor sessionAccessor,
long platformSessionId)
protected void createDefaultCommands(CommandService commandService, org.bonitasoft.engine.command.model.SCommandBuilder commandBuilder, DefaultCommandProvider provider) throws SCommandAlreadyExistsException, SCommandCreationException
protected void createDefaultDataSource(org.bonitasoft.engine.data.model.builder.SDataSourceModelBuilder sDataSourceModelBuilder,
org.bonitasoft.engine.data.DataService dataService)
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 PlatformAPICopyright © 2013 BonitaSoft. All Rights Reserved.