Package org.bonitasoft.engine.connector
Interface ConnectorExecutor
-
- All Superinterfaces:
LifecycleService
,TenantLifecycleService
- All Known Implementing Classes:
ConnectorExecutorImpl
public interface ConnectorExecutor extends TenantLifecycleService
- Since:
- 6.0
- Author:
- Feng Hui, Matthieu Chaffotte
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
disconnect(SConnector sConnector)
call disconnect method of the connectorjava.util.concurrent.CompletableFuture<ConnectorExecutionResult>
execute(SConnector sConnector, java.util.Map<java.lang.String,java.lang.Object> inputParameters, java.lang.ClassLoader classLoader)
Executes a connector.-
Methods inherited from interface org.bonitasoft.engine.commons.LifecycleService
pause, resume, start, stop
-
Methods inherited from interface org.bonitasoft.engine.commons.TenantLifecycleService
init
-
-
-
-
Method Detail
-
execute
java.util.concurrent.CompletableFuture<ConnectorExecutionResult> execute(SConnector sConnector, java.util.Map<java.lang.String,java.lang.Object> inputParameters, java.lang.ClassLoader classLoader) throws SConnectorException
Executes 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
void disconnect(SConnector sConnector) throws SConnectorException
call disconnect method of the connector- Parameters:
sConnector
-- Throws:
SConnectorException
-
-