public class PlatformAPIImpl extends Object implements PlatformAPI
| Constructor and Description |
|---|
PlatformAPIImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
cleanAndDeletePlaftorm()
Deprecated.
|
void |
cleanAndDeletePlatform() |
void |
cleanPlatform() |
protected void |
cleanSessionAccessor(org.bonitasoft.engine.sessionaccessor.SessionAccessor sessionAccessor,
long platformSessionId) |
void |
createAndInitializePlatform() |
void |
createPlatform() |
protected Long |
createSession(long tenantId,
SessionService sessionService) |
void |
deletePlatform() |
Platform |
getPlatform() |
protected PlatformServiceAccessor |
getPlatformAccessor() |
PlatformState |
getPlatformState() |
protected List<org.bonitasoft.engine.platform.model.STenant> |
getTenants(PlatformServiceAccessor platformAccessor) |
protected TenantServiceAccessor |
getTenantServiceAccessor(long tenantId) |
void |
initializePlatform() |
boolean |
isNodeStarted() |
boolean |
isPlatformCreated() |
protected void |
registerJob(org.bonitasoft.engine.scheduler.SchedulerService schedulerService,
org.bonitasoft.engine.scheduler.JobRegister jobRegister) |
protected void |
registerMissingTenantsDefaultJobs(PlatformServiceAccessor platformAccessor,
org.bonitasoft.engine.sessionaccessor.SessionAccessor sessionAccessor,
List<org.bonitasoft.engine.platform.model.STenant> tenants)
Registers missing default jobs (if any) for the provided tenants
|
void |
rescheduleErroneousTriggers() |
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 void registerMissingTenantsDefaultJobs(PlatformServiceAccessor platformAccessor, org.bonitasoft.engine.sessionaccessor.SessionAccessor sessionAccessor, List<org.bonitasoft.engine.platform.model.STenant> tenants) throws BonitaHomeNotSetException, BonitaHomeConfigurationException, NoSuchMethodException, InstantiationException, IllegalAccessException, InvocationTargetException, org.bonitasoft.engine.commons.exceptions.SBonitaException, IOException, ClassNotFoundException
platformAccessor - sessionAccessor - tenants - BonitaHomeNotSetExceptionBonitaHomeConfigurationExceptionNoSuchMethodExceptionInstantiationExceptionIllegalAccessExceptionInvocationTargetExceptionorg.bonitasoft.engine.commons.exceptions.SBonitaExceptionIOExceptionClassNotFoundExceptionprotected void registerJob(org.bonitasoft.engine.scheduler.SchedulerService schedulerService,
org.bonitasoft.engine.scheduler.JobRegister jobRegister)
throws org.bonitasoft.engine.scheduler.exception.SSchedulerException
org.bonitasoft.engine.scheduler.exception.SSchedulerExceptionprotected List<org.bonitasoft.engine.platform.model.STenant> getTenants(PlatformServiceAccessor platformAccessor) throws Exception
Exceptionprotected 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 PlatformAPIDeletionException@Deprecated public void cleanAndDeletePlaftorm() throws DeletionException
cleanAndDeletePlaftorm in interface PlatformAPIDeletionExceptionpublic void cleanAndDeletePlatform()
throws DeletionException
cleanAndDeletePlatform in interface PlatformAPIDeletionExceptionpublic Platform getPlatform() throws PlatformNotFoundException
getPlatform in interface PlatformAPIPlatformNotFoundExceptionprotected void cleanSessionAccessor(org.bonitasoft.engine.sessionaccessor.SessionAccessor sessionAccessor,
long platformSessionId)
protected 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 PlatformAPIpublic void rescheduleErroneousTriggers()
throws UpdateException
rescheduleErroneousTriggers in interface PlatformAPIUpdateExceptionCopyright © 2015 Bonitasoft S.A.. All rights reserved.