Package org.bonitasoft.engine.connector
Interface ConnectorExecutor
- All Superinterfaces:
LifecycleService,TenantLifecycleService
- All Known Implementing Classes:
ConnectorExecutorImpl
- Since:
- 6.0
- Author:
- Feng Hui, Matthieu Chaffotte
-
Method Summary
Modifier and TypeMethodDescriptionvoiddisconnect(SConnector sConnector) call disconnect method of the connectorexecute(SConnector sConnector, Map<String, Object> inputParameters, ClassLoader classLoader) Executes a connector.Methods inherited from interface org.bonitasoft.engine.commons.LifecycleService
pause, resume, start, stopMethods inherited from interface org.bonitasoft.engine.commons.TenantLifecycleService
init
-
Method Details
-
execute
CompletableFuture<ConnectorExecutionResult> execute(SConnector sConnector, Map<String, Object> inputParameters, ClassLoader classLoader) throws SConnectorExceptionExecutes a connector.- Parameters:
sConnector- The connector will be executedinputParameters- The input parameters of connectorclassLoader- The classLoader within the connector will be executed- Returns:
- a completable future with the result
- Throws:
SConnectorException- Error thrown when error occurs in connector executing
-
disconnect
call disconnect method of the connector- Parameters:
sConnector-- Throws:
SConnectorException
-