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() |
Map<String,byte[]> |
getClientPlatformConfigurations() |
byte[] |
getClientTenantConfiguration(long tenantId,
String file) |
Map<Long,Map<String,byte[]>> |
getClientTenantConfigurations() |
Platform |
getPlatform() |
protected PlatformServiceAccessor |
getPlatformAccessor() |
protected List<org.bonitasoft.engine.commons.PlatformLifecycleService> |
getPlatformServicesToStart(NodeConfiguration platformConfiguration) |
PlatformState |
getPlatformState() |
protected List<org.bonitasoft.engine.platform.model.STenant> |
getTenants(PlatformServiceAccessor platformAccessor) |
protected TenantServiceAccessor |
getTenantServiceAccessor(long tenantId) |
void |
initializePlatform() |
boolean |
isNodeStarted() |
boolean |
isPlatformCreated() |
boolean |
isPlatformInitialized() |
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() |
void |
updateClientTenantConfigurationFile(long tenantId,
String file,
byte[] content) |
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.commons.PlatformLifecycleService> getPlatformServicesToStart(NodeConfiguration platformConfiguration) throws StartNodeException
StartNodeExceptionprotected 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, ClassNotFoundException
org.bonitasoft.engine.commons.exceptions.SBonitaExceptionBonitaHomeNotSetExceptionIOExceptionBonitaHomeConfigurationExceptionNoSuchMethodExceptionInstantiationExceptionIllegalAccessExceptionInvocationTargetExceptionClassNotFoundExceptionpublic 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 isPlatformInitialized()
throws PlatformNotFoundException
isPlatformInitialized in interface PlatformAPIPlatformNotFoundExceptionpublic 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 PlatformAPIUpdateExceptionpublic Map<String,byte[]> getClientPlatformConfigurations()
getClientPlatformConfigurations in interface PlatformAPIpublic Map<Long,Map<String,byte[]>> getClientTenantConfigurations()
getClientTenantConfigurations in interface PlatformAPIpublic byte[] getClientTenantConfiguration(long tenantId,
String file)
getClientTenantConfiguration in interface PlatformAPIpublic void updateClientTenantConfigurationFile(long tenantId,
String file,
byte[] content)
throws UpdateException
updateClientTenantConfigurationFile in interface PlatformAPIUpdateExceptionCopyright © 2016 Bonitasoft S.A.. All rights reserved.