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 org.springframework.web.client.RestTemplate |
restTemplate
A template used for http interaction.
|
| Constructor and Description |
|---|
DataFlowTemplate(URI baseURI)
Setup a
DataFlowTemplate using the provided baseURI. |
DataFlowTemplate(URI baseURI,
org.springframework.web.client.RestTemplate restTemplate)
Setup a
DataFlowTemplate using the provide RestTemplate. |
| Modifier and Type | Method and Description |
|---|---|
AboutOperations |
aboutOperation() |
AppRegistryOperations |
appRegistryOperations() |
CompletionOperations |
completionOperations() |
static org.springframework.web.client.RestTemplate |
getDefaultDataflowRestTemplate()
Invokes
prepareRestTemplate(RestTemplate). |
org.springframework.hateoas.Link |
getLink(org.springframework.hateoas.RepresentationModel<?> resourceSupport,
String rel) |
org.springframework.web.client.RestTemplate |
getRestTemplate() |
JobOperations |
jobOperations() |
static com.fasterxml.jackson.databind.ObjectMapper |
prepareObjectMapper(com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Mutable operation to add several required MixIns to the provided
ObjectMapper. |
static org.springframework.web.client.RestTemplate |
prepareRestTemplate(org.springframework.web.client.RestTemplate restTemplate)
Will augment the provided
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 |
RuntimeOperations |
runtimeOperations() |
SchedulerOperations |
schedulerOperations() |
StreamOperations |
streamOperations() |
TaskOperations |
taskOperations() |
protected final org.springframework.web.client.RestTemplate restTemplate
public DataFlowTemplate(URI baseURI)
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, org.springframework.web.client.RestTemplate restTemplate)
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 org.springframework.web.client.RestTemplate prepareRestTemplate(org.springframework.web.client.RestTemplate restTemplate)
RestTemplate with the Jackson Mixins required by
Spring Cloud Data Flow, specifically:
JobExecutionJacksonMixIn
JobParametersJacksonMixIn
JobParameterJacksonMixIn
JobInstanceJacksonMixIn
ExitStatusJacksonMixIn
StepExecutionJacksonMixIn
ExecutionContextJacksonMixIn
StepExecutionHistoryJacksonMixIn
Jackson2HalModulerestTemplate - 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 org.springframework.web.client.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 org.springframework.web.client.RestTemplate getRestTemplate()
Copyright © 2020 Pivotal Software, Inc.. All rights reserved.