public class ExecuteAfmService extends AbstractService
/executeAfm/executeVisualizationAbstractService.OutputStreamResponseExtractor| Modifier and Type | Field and Description |
|---|---|
static String |
AFM_EXECUTION_URI
URI string containing template link to the
/executeAfm resource. |
static String |
RESULT_LIMIT
Query param representing limit of result data returned by AFM execution.
|
static String |
RESULT_OFFSET
Query param representing offset of result data returned by AFM execution.
|
static String |
VISUALIZATION_EXECUTION_URI
URI string containing template link to the
/executeVisualization resource. |
mapper, restTemplate| Constructor and Description |
|---|
ExecuteAfmService(org.springframework.web.client.RestTemplate restTemplate,
GoodDataSettings settings)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
ExecutionResponse |
executeAfm(Project project,
Execution execution)
Executes the given AFM execution returning the execution response
|
ExecutionResponse |
executeVisualization(Project project,
VisualizationExecution execution)
Executes the given execution returning the execution response
|
FutureResult<ExecutionResult> |
getResult(ExecutionResponse executionResponse)
Get for result of given response.
|
FutureResult<ExecutionResult> |
getResult(ExecutionResponse executionResponse,
ResultPage page)
Get for page of result of given response.
|
extractDatapublic static final String AFM_EXECUTION_URI
/executeAfm resource.public static final String VISUALIZATION_EXECUTION_URI
/executeVisualization resource.public static final String RESULT_OFFSET
ExecutionResponse.getExecutionResultUri() link.public static final String RESULT_LIMIT
ExecutionResponse.getExecutionResultUri() link.public ExecuteAfmService(org.springframework.web.client.RestTemplate restTemplate,
GoodDataSettings settings)
restTemplate - rest templatesettings - settingspublic ExecutionResponse executeAfm(Project project, Execution execution)
project - project of the executionexecution - executionpublic ExecutionResponse executeVisualization(Project project, VisualizationExecution execution)
project - project of the executionexecution - executionpublic FutureResult<ExecutionResult> getResult(ExecutionResponse executionResponse)
executionResponse - response to get the resultpublic FutureResult<ExecutionResult> getResult(ExecutionResponse executionResponse, ResultPage page)
executionResponse - response to get the resultpage - desired result page specificationCopyright © 2019. All rights reserved.