@RestController @RequestMapping(value="/streams/deployments") @ExposesResourceFor(value=StreamDeploymentResource.class) public class StreamDeploymentController extends Object
StreamDefinition
.Constructor and Description |
---|
StreamDeploymentController(StreamDefinitionRepository repository,
StreamService streamService)
Create a
StreamDeploymentController that delegates
CRUD operations to the provided StreamDefinitionRepository
deployment operations to the provided AppDeployer via
StreamService
|
Modifier and Type | Method and Description |
---|---|
void |
deploy(String name,
Map<String,String> properties)
Request deployment of an existing stream definition.
|
StreamDeploymentResource |
info(String name)
Request deployment of an existing stream definition.
|
void |
undeploy(String name)
Request un-deployment of an existing stream.
|
void |
undeployAll()
Request un-deployment of all streams.
|
public StreamDeploymentController(StreamDefinitionRepository repository, StreamService streamService)
StreamDeploymentController
that delegates
StreamDefinitionRepository
AppDeployer
via
StreamService
repository
- the repository this controller will use for stream CRUD operationsstreamService
- the underlying StreamService to deploy the stream@RequestMapping(value="/{name}", method=DELETE) @ResponseStatus(value=OK) public void undeploy(@PathVariable(value="name") String name)
name
- the name of an existing stream (required)@RequestMapping(value="", method=DELETE) @ResponseStatus(value=OK) public void undeployAll()
@RequestMapping(value="/{name}", method=GET) @ResponseStatus(value=CREATED) public StreamDeploymentResource info(@PathVariable(value="name") String name)
name
- the name of an existing stream definition (required)@RequestMapping(value="/{name}", method=POST) @ResponseStatus(value=CREATED) public void deploy(@PathVariable(value="name") String name, @RequestBody(required=false) Map<String,String> properties)
name
- the name of an existing stream definition (required)properties
- the deployment properties for the stream as a comma-delimited list of
key=value pairsCopyright © 2018 Pivotal Software, Inc.. All rights reserved.