Class CompletionTemplate
java.lang.Object
org.springframework.cloud.dataflow.rest.client.CompletionTemplate
- All Implemented Interfaces:
CompletionOperations
Implementation of
CompletionOperations that uses a RestTemplate to
issue commands to the Data Flow server.- Author:
- Eric Bottard
-
Constructor Summary
ConstructorsConstructorDescriptionCompletionTemplate(RestTemplate restTemplate, org.springframework.hateoas.Link streamLink, org.springframework.hateoas.Link taskLink) -
Method Summary
Modifier and TypeMethodDescriptionstreamCompletions(String prefix, int levelOfDetail) Return the list of streamCompletions that are compatible with the given DSL prefix.taskCompletions(String prefix, int levelOfDetail) Return the list of taskCompletions that are compatible with the given DSL prefix.
-
Constructor Details
-
CompletionTemplate
public CompletionTemplate(RestTemplate restTemplate, org.springframework.hateoas.Link streamLink, org.springframework.hateoas.Link taskLink)
-
-
Method Details
-
streamCompletions
Description copied from interface:CompletionOperationsReturn the list of streamCompletions that are compatible with the given DSL prefix.- Specified by:
streamCompletionsin interfaceCompletionOperations- Parameters:
prefix- the provided prefix value from DSLlevelOfDetail- integer value that specifies the level of detail user wants in stream completions- Returns:
- the stream completion proposals for the given DSL prefix
-
taskCompletions
Description copied from interface:CompletionOperationsReturn the list of taskCompletions that are compatible with the given DSL prefix.- Specified by:
taskCompletionsin interfaceCompletionOperations- Parameters:
prefix- the provided prefix value from DSLlevelOfDetail- integer value that specifies the level of detail user wants in task completions- Returns:
- the task completion proposals for the given DSL prefix
-