public class DataFlowTemplate extends Object implements DataFlowOperations
| Modifier and Type | Field and Description |
|---|---|
protected Map<String,org.springframework.hateoas.UriTemplate> |
resources
Holds discovered URLs of the API.
|
protected RestTemplate |
restTemplate
A template used for http interaction.
|
| Constructor and Description |
|---|
DataFlowTemplate(URI baseURI,
com.fasterxml.jackson.databind.ObjectMapper mapper)
Setup a
DataFlowTemplate using the provided baseURI. |
DataFlowTemplate(URI baseURI,
RestTemplate restTemplate,
com.fasterxml.jackson.databind.ObjectMapper mapper)
Setup a
DataFlowTemplate using the provide RestTemplate. |
protected final RestTemplate restTemplate
public DataFlowTemplate(URI baseURI, com.fasterxml.jackson.databind.ObjectMapper mapper)
DataFlowTemplate using the provided baseURI. Will build a
RestTemplate implicitly with the required set of Jackson MixIns. For more
information, please see prepareRestTemplate(RestTemplate).
Please be aware that the created RestTemplate will use the JDK's default timeout
values. Consider passing in a custom RestTemplate or, depending on your JDK
implementation, set System properties such as:
baseURI - Must not be nullpublic DataFlowTemplate(URI baseURI, RestTemplate restTemplate, com.fasterxml.jackson.databind.ObjectMapper mapper)
DataFlowTemplate using the provide RestTemplate. Any
missing Mixins for Jackson will be added implicitly. For more information, please
see prepareRestTemplate(RestTemplate).baseURI - Must not be nullrestTemplate - Must not be nullpublic static RestTemplate prepareRestTemplate(RestTemplate restTemplate)
RestTemplate with the Jackson Mixins required by
Spring Cloud Data Flow, specifically:
JobExecutionJacksonMixIn
JobParametersJacksonMixIn
JobParameterJacksonMixIn
JobInstanceJacksonMixIn
ExitStatusJacksonMixIn
StepExecutionJacksonMixIn
ExecutionContextJacksonMixIn
StepExecutionHistoryJacksonMixIn
Furthermore, this method will also register the Jackson2HalModule
restTemplate - Can be null. Instantiates a new RestTemplate if nullpublic static com.fasterxml.jackson.databind.ObjectMapper prepareObjectMapper(com.fasterxml.jackson.databind.ObjectMapper objectMapper)
ObjectMapper.objectMapper - Must not be nullpublic static RestTemplate getDefaultDataflowRestTemplate()
prepareRestTemplate(RestTemplate).public org.springframework.hateoas.Link getLink(org.springframework.hateoas.RepresentationModel<?> resourceSupport,
String rel)
public StreamOperations streamOperations()
streamOperations in interface DataFlowOperationspublic TaskOperations taskOperations()
taskOperations in interface DataFlowOperationspublic JobOperations jobOperations()
jobOperations in interface DataFlowOperationspublic AppRegistryOperations appRegistryOperations()
appRegistryOperations in interface DataFlowOperationspublic CompletionOperations completionOperations()
completionOperations in interface DataFlowOperationspublic RuntimeOperations runtimeOperations()
runtimeOperations in interface DataFlowOperationspublic AboutOperations aboutOperation()
aboutOperation in interface DataFlowOperationspublic SchedulerOperations schedulerOperations()
schedulerOperations in interface DataFlowOperationspublic RestTemplate getRestTemplate()
Copyright © 2024 Pivotal Software, Inc.. All rights reserved.