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()
DataFlowOperations
streamOperations
in interface DataFlowOperations
public CounterOperations counterOperations()
DataFlowOperations
counterOperations
in interface DataFlowOperations
public FieldValueCounterOperations fieldValueCounterOperations()
DataFlowOperations
fieldValueCounterOperations
in interface DataFlowOperations
public AggregateCounterOperations aggregateCounterOperations()
DataFlowOperations
aggregateCounterOperations
in interface DataFlowOperations
public TaskOperations taskOperations()
DataFlowOperations
taskOperations
in interface DataFlowOperations
public JobOperations jobOperations()
DataFlowOperations
jobOperations
in interface DataFlowOperations
public AppRegistryOperations appRegistryOperations()
DataFlowOperations
appRegistryOperations
in interface DataFlowOperations
public CompletionOperations completionOperations()
DataFlowOperations
completionOperations
in interface DataFlowOperations
public RuntimeOperations runtimeOperations()
DataFlowOperations
runtimeOperations
in interface DataFlowOperations
public 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 © 2016 Pivotal Software, Inc.. All rights reserved.