public class AppDeployerStreamService extends AbstractStreamService
streamDefinitionRepository, streamDeployer
Constructor and Description |
---|
AppDeployerStreamService(StreamDefinitionRepository streamDefinitionRepository,
AppDeployerStreamDeployer appDeployerStreamDeployer,
AppDeploymentRequestCreator appDeploymentRequestCreator) |
Modifier and Type | Method and Description |
---|---|
org.springframework.cloud.deployer.spi.app.DeploymentState |
doCalculateStreamState(String name) |
void |
doDeployStream(StreamDefinition streamDefinition,
Map<String,String> deploymentProperties) |
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.
|
Map<StreamDefinition,org.springframework.cloud.deployer.spi.app.DeploymentState> |
state(List<StreamDefinition> streamDefinitions)
Retrieve the deployment state for the given stream definitions.
|
void |
undeployStream(String streamName)
Un-deploys the stream identified by the given stream name.
|
void |
updateStream(String streamName,
UpdateStreamRequest updateStreamRequest)
Update the stream using the UpdateStreamRequest.
|
deployStream
public AppDeployerStreamService(StreamDefinitionRepository streamDefinitionRepository, AppDeployerStreamDeployer appDeployerStreamDeployer, AppDeploymentRequestCreator appDeploymentRequestCreator)
public org.springframework.cloud.deployer.spi.app.DeploymentState doCalculateStreamState(String name)
doCalculateStreamState
in class AbstractStreamService
public void doDeployStream(StreamDefinition streamDefinition, Map<String,String> deploymentProperties)
doDeployStream
in class AbstractStreamService
public void undeployStream(String streamName)
StreamService
streamName
- the name of the stream to un-deploypublic Map<StreamDefinition,org.springframework.cloud.deployer.spi.app.DeploymentState> state(List<StreamDefinition> streamDefinitions)
StreamService
streamDefinitions
- the list of Stream definitions to calculate the deployment states.public void updateStream(String streamName, UpdateStreamRequest updateStreamRequest)
StreamService
streamName
- the name of the stream to updateupdateStreamRequest
- the UpdateStreamRequest to use during the updatepublic void rollbackStream(String streamName, int releaseVersion)
StreamService
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.public String manifest(String releaseName, int releaseVersion)
StreamService
releaseName
- the release namereleaseVersion
- the release versionpublic Collection<org.springframework.cloud.skipper.domain.Release> history(String releaseName)
StreamService
releaseName
- Stream release namepublic Collection<org.springframework.cloud.skipper.domain.Deployer> platformList()
public StreamDeployment info(String streamName)
StreamService
streamName
- the name of the streamCopyright © 2019 Pivotal Software, Inc.. All rights reserved.