public interface PlatformAPI
The platform is the base on which runs the engine.
It mainly handles the creation of tables in database and also allow to start/stop a Node which is the current Virtual machine on which runs the engine. There
is only one platform for a running Bonita Engine.
Modifier and Type | Method and Description |
---|---|
void |
cleanAndDeletePlaftorm()
Clean and delete a platform.
|
void |
cleanPlatform()
Clean the platform.
|
void |
createAndInitializePlatform()
Utilitary method that call
createPlatform() and initializePlatform() |
void |
createPlatform()
Create the platform.
|
void |
deletePlatform()
Delete the platform
|
Platform |
getPlatform()
Deprecated.
|
PlatformState |
getPlatformState()
Get the state of the platform of the current node
|
void |
initializePlatform()
Initialize the platform.
The running environment of Bonita Engine is initialized and marked as activated.
Business elements linked to the execution are initialized, after this step the technical user will be able to connect to the engine and to import the organization. |
boolean |
isPlatformCreated()
Check if the platform created or not.
|
void |
startNode()
Starts the node.
|
void |
stopNode()
Stops the node.
|
void createPlatform() throws CreationException
The platform creation is done in 3 steps:
InvalidSessionException
- occurs if the API session is invalid, e.g session has expired.CreationException
- occurs when an exception is thrown during platform creationvoid initializePlatform() throws CreationException
InvalidSessionException
- occurs if the API session is invalid, e.g session has expired.CreationException
- occurs when an exception is thrown during platform creationvoid createAndInitializePlatform() throws CreationException
createPlatform()
and initializePlatform()
InvalidSessionException
- occurs if the API session is invalid, e.g session has expired.CreationException
- occurs when an exception is thrown during platform creationcreatePlatform()
,
initializePlatform()
void startNode() throws StartNodeException
The node is the currently Java Virtual Machine on which Bonita Engine is running
Starting the node make the Scheduler service
to start and restart elements that were not
finished by the Work
service
on the previous shutdown.
InvalidSessionException
- occurs if API Session is invalid, e.g session has expired.StartNodeException
- occurs when an exception is thrown during the activation of the nodevoid stopNode() throws StopNodeException
The node is the currently Java Virtual Machine on which Bonita Engine is running
Stopping the node make the Scheduler service
to stop.
InvalidSessionException
- occurs if API Session is invalid, e.g session has expired.StopNodeException
- occurs when an exception is thrown during the stop of the nodevoid cleanPlatform() throws DeletionException
Empty all execution informations, i.e. database tables are cleaned and a new execution environment can be initialized.
/!\Please remember that all data will be DELETED/!\
This method does the opposite of initializePlatform()
InvalidSessionException
- Generic exception thrown if API Session is invalid, e.g session has expired.DeletionException
- occurs when an exception is thrown during platform deletioninitializePlatform()
void deletePlatform() throws DeletionException
This method delete the platform, i.e. all the database tables.
InvalidSessionException
- Generic exception thrown if API Session is invalid, e.g session has expired.DeletionException
- occurs when an exception is thrown during platform deletioncreatePlatform()
void cleanAndDeletePlaftorm() throws DeletionException
InvalidSessionException
- Generic exception thrown if API Session is invalid, e.g session has expired.DeletionException
- occurs when an exception is thrown during platform deletioncleanPlatform()
,
deletePlatform()
@Deprecated Platform getPlatform() throws PlatformNotFoundException
InvalidSessionException
- Generic exception thrown if API Session is invalid, e.g session has expired.PlatformNotFoundException
- occurs when the identifier does not refer to an existing platformboolean isPlatformCreated() throws PlatformNotFoundException
InvalidSessionException
- Generic exception thrown if API Session is invalid, e.g session has expired.PlatformNotFoundException
- occurs when the identifier does not refer to an existing platformPlatformState getPlatformState() throws PlatformNotFoundException
PlatformState.STARTED
or PlatformState.STOPPED
depending on the scheduler stateInvalidSessionException
- Generic exception thrown if API Session is invalid, e.g session has expired.PlatformNotFoundException
- occurs when the identifier does not refer to an existing platformCopyright © 2013 BonitaSoft. All Rights Reserved.