public class ConnectorService extends AbstractService
AbstractService.OutputStreamResponseExtractormapper, noopRequestCallback, restTemplate, WAIT_BEFORE_RETRY_IN_MILLIS| Constructor and Description |
|---|
ConnectorService(org.springframework.web.client.RestTemplate restTemplate,
ProjectService projectService) |
| Modifier and Type | Method and Description |
|---|---|
Integration |
createIntegration(Project project,
ConnectorType connectorType,
Integration integration)
Create connector integration
|
Integration |
createIntegration(Project project,
Settings settings)
Create connector integration with given settings
|
FutureResult<ProcessStatus> |
executeProcess(Project project,
ProcessExecution execution)
Execute connector process
|
void |
updateSettings(Project project,
Settings settings)
Update integration settings
|
extractDatapublic ConnectorService(org.springframework.web.client.RestTemplate restTemplate,
ProjectService projectService)
public Integration createIntegration(Project project, Settings settings)
project - projectsettings - integration settingsConnectorException - if integration can't be createdpublic Integration createIntegration(Project project, ConnectorType connectorType, Integration integration)
project - projectconnectorType - connector typeintegration - integrationConnectorException - if integration can't be createdpublic void updateSettings(Project project, Settings settings)
project - projectsettings - integration settingsConnectorException - if settings can't be updatedpublic FutureResult<ProcessStatus> executeProcess(Project project, ProcessExecution execution)
project - projectexecution - process executionConnectorException - if process execution failsCopyright © 2014. All Rights Reserved.