public interface StreamService
Modifier and Type | Method and Description |
---|---|
StreamDefinition |
createStream(String streamName,
String dsl,
String description,
boolean deploy,
Map<String,String> deploymentProperties)
Create a new stream.
|
void |
deleteAll()
Delete all streams, including undeploying.
|
void |
deleteStream(String name)
Delete the stream, including undeloying.
|
void |
deployStream(String name,
Map<String,String> deploymentProperties)
Deploys the stream with the user provided deployment properties.
|
org.springframework.data.domain.Page<StreamDefinition> |
findDefinitionByNameContains(org.springframework.data.domain.Pageable pageable,
String search)
Find stream definitions where the findByTaskNameContains parameter
|
StreamDefinition |
findOne(String streamDefinitionName)
Find a stream definition by name.
|
List<StreamDefinition> |
findRelatedStreams(String name,
boolean nested)
Find streams related to the given stream name.
|
Collection<org.springframework.cloud.skipper.domain.Release> |
history(String releaseName)
Get stream's deployment history
|
StreamDeployment |
info(String streamName)
Get stream information including the deployment properties etc.
|
String |
manifest(String releaseName,
int releaseVersion)
Return a manifest info of a release version.
|
Collection<org.springframework.cloud.skipper.domain.Deployer> |
platformList() |
void |
rollbackStream(String streamName,
int releaseVersion)
Rollback the stream to the previous or a specific version of the stream.
|
void |
scaleApplicationInstances(String streamName,
String appName,
int count,
Map<String,String> properties)
Scale application instances in a deployed stream.
|
Map<StreamDefinition,org.springframework.cloud.deployer.spi.app.DeploymentState> |
state(List<StreamDefinition> streamDefinitions)
Retrieve the deployment state for list of stream definitions.
|
void |
undeployStream(String name)
Un-deploys the stream identified by the given stream name.
|
void |
updateStream(String streamName,
UpdateStreamRequest updateStreamRequest)
Update the stream using the UpdateStreamRequest.
|
ValidationStatus |
validateStream(String name)
Verifies that all apps in the stream are valid.
|
void scaleApplicationInstances(String streamName, String appName, int count, Map<String,String> properties)
streamName
- the name of an existing stream definition (required)appName
- in stream application name to scale (required)count
- number of instances for the selected stream application (required)properties
- scale deployment specific properties (optional)void updateStream(String streamName, UpdateStreamRequest updateStreamRequest)
streamName
- the name of the stream to updateupdateStreamRequest
- the UpdateStreamRequest to use during the updatevoid rollbackStream(String streamName, int releaseVersion)
streamName
- the name of the stream to rollbackreleaseVersion
- the version to rollback to (if not specified, rollback to the previous deleted/deployed
release version of the stream.String manifest(String releaseName, int releaseVersion)
releaseName
- the release namereleaseVersion
- the release versionCollection<org.springframework.cloud.skipper.domain.Release> history(String releaseName)
releaseName
- Stream release nameCollection<org.springframework.cloud.skipper.domain.Deployer> platformList()
StreamDefinition createStream(String streamName, String dsl, String description, boolean deploy, Map<String,String> deploymentProperties)
streamName
- stream namedsl
- DSL definition for streamdescription
- description of the stream definitiondeploy
- if true
, the stream is deployed upon creation (default is
false
)deploymentProperties
- the optional deployment properties to use when the stream is deployed upon creationInvalidStreamDefinitionException
- if there are errors in parsing the stream DSL,
resolving the name, or type of applications in the streamvoid deployStream(String name, Map<String,String> deploymentProperties)
name
- the name of the streamdeploymentProperties
- deployment properties to use as passed in from the client.void undeployStream(String name)
name
- the name of the stream to un-deployvoid deleteStream(String name)
name
- the name of the stream to deletevoid deleteAll()
Map<StreamDefinition,org.springframework.cloud.deployer.spi.app.DeploymentState> state(List<StreamDefinition> streamDefinitions)
streamDefinitions
- the list of Stream definitions to calculate the deployment states.StreamDeployment info(String streamName)
streamName
- the name of the streamList<StreamDefinition> findRelatedStreams(String name, boolean nested)
name
- name of the streamnested
- if should recursively findByTaskNameContains for related stream definitionsorg.springframework.data.domain.Page<StreamDefinition> findDefinitionByNameContains(org.springframework.data.domain.Pageable pageable, String search)
pageable
- Pagination informationsearch
- the findByTaskNameContains parameter to useStreamDefinition findOne(String streamDefinitionName)
streamDefinitionName
- the name of the stream definitionNoSuchStreamDefinitionException
- if the definition can not be found.ValidationStatus validateStream(String name)
name
- the name of the definitionValidationStatus
for a stream.Copyright © 2024 Pivotal Software, Inc.. All rights reserved.