@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.
|
Collection<org.springframework.cloud.skipper.domain.Release> |
history(String releaseName) |
StreamDeploymentResource |
info(String name)
Request deployment of an existing stream definition.
|
String |
manifest(String name,
int version) |
Collection<org.springframework.cloud.skipper.domain.Deployer> |
platformList() |
void |
rollback(String name,
int version) |
void |
undeploy(String name)
Request un-deployment of an existing stream.
|
void |
undeployAll()
Request un-deployment of all streams.
|
void |
update(String name,
UpdateStreamRequest updateStreamRequest) |
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 pairs@RequestMapping(value="/update/{name}", method=POST) @ResponseStatus(value=CREATED) public void update(@PathVariable(value="name") String name, @RequestBody UpdateStreamRequest updateStreamRequest)
@RequestMapping(value="/rollback/{name}/{version}", method=POST) @ResponseStatus(value=CREATED) public void rollback(@PathVariable(value="name") String name, @PathVariable(value="version") int version)
@RequestMapping(value="/manifest/{name}/{version}", method=GET) @ResponseStatus(value=OK) public String manifest(@PathVariable(value="name") String name, @PathVariable(value="version") int version)
@RequestMapping(path="/history/{name}", method=GET) @ResponseStatus(value=OK) public Collection<org.springframework.cloud.skipper.domain.Release> history(@PathVariable(value="name") String releaseName)
@RequestMapping(path="/platform/list", method=GET) @ResponseStatus(value=OK) public Collection<org.springframework.cloud.skipper.domain.Deployer> platformList()
Copyright © 2018 Pivotal Software, Inc.. All rights reserved.