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. |
protected final org.springframework.web.client.RestTemplate restTemplate
public DataFlowTemplate(URI baseURI)
DataFlowTemplate using the provided baseURI. Will create 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 org.springframework.hateoas.Link getLink(org.springframework.hateoas.ResourceSupport resourceSupport,
String rel)
public StreamOperations streamOperations()
streamOperations in interface DataFlowOperationspublic CounterOperations counterOperations()
counterOperations in interface DataFlowOperationspublic FieldValueCounterOperations fieldValueCounterOperations()
fieldValueCounterOperations in interface DataFlowOperationspublic AggregateCounterOperations aggregateCounterOperations()
aggregateCounterOperations 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 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 org.springframework.web.client.RestTemplate getDefaultDataflowRestTemplate()
prepareRestTemplate(RestTemplate).public org.springframework.web.client.RestTemplate getRestTemplate()
Copyright © 2017 Pivotal Software, Inc.. All rights reserved.