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)
Setup a
DataFlowTemplate using the provided baseURI. |
DataFlowTemplate(URI baseURI,
RestTemplate restTemplate)
Setup a
DataFlowTemplate using the provide RestTemplate. |
| Modifier and Type | Method and Description |
|---|---|
AggregateCounterOperations |
aggregateCounterOperations()
Aggregate Counter related operations.
|
AppRegistryOperations |
appRegistryOperations()
Application registry related operations.
|
CompletionOperations |
completionOperations()
DSL Completion related operations.
|
CounterOperations |
counterOperations()
Counter related operations.
|
FieldValueCounterOperations |
fieldValueCounterOperations()
Field Value Counter related operations.
|
static RestTemplate |
getDefaultDataflowRestTemplate()
Invokes
prepareRestTemplate(RestTemplate). |
org.springframework.hateoas.Link |
getLink(org.springframework.hateoas.ResourceSupport resourceSupport,
String rel) |
RestTemplate |
getRestTemplate() |
JobOperations |
jobOperations()
Job related operations.
|
static RestTemplate |
prepareRestTemplate(RestTemplate restTemplate)
Will augment the provided
RestTemplate with the Jackson Mixins required by Spring Cloud Data Flow,
specifically: |
RuntimeOperations |
runtimeOperations()
Runtime related opertations.
|
StreamOperations |
streamOperations()
Stream related operations.
|
TaskOperations |
taskOperations()
Task related operations.
|
protected final 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:
For more information see this link
baseURI - Must not be nullpublic DataFlowTemplate(URI baseURI, 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()
DataFlowOperationsstreamOperations in interface DataFlowOperationspublic CounterOperations counterOperations()
DataFlowOperationscounterOperations in interface DataFlowOperationspublic FieldValueCounterOperations fieldValueCounterOperations()
DataFlowOperationsfieldValueCounterOperations in interface DataFlowOperationspublic AggregateCounterOperations aggregateCounterOperations()
DataFlowOperationsaggregateCounterOperations in interface DataFlowOperationspublic TaskOperations taskOperations()
DataFlowOperationstaskOperations in interface DataFlowOperationspublic JobOperations jobOperations()
DataFlowOperationsjobOperations in interface DataFlowOperationspublic AppRegistryOperations appRegistryOperations()
DataFlowOperationsappRegistryOperations in interface DataFlowOperationspublic CompletionOperations completionOperations()
DataFlowOperationscompletionOperations in interface DataFlowOperationspublic RuntimeOperations runtimeOperations()
DataFlowOperationsruntimeOperations in interface DataFlowOperationspublic 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 RestTemplate getDefaultDataflowRestTemplate()
prepareRestTemplate(RestTemplate).public RestTemplate getRestTemplate()
Copyright © 2017 Pivotal Software, Inc.. All rights reserved.