public class SkipperStreamDeployer extends Object implements StreamDeployer
Constructor and Description |
---|
SkipperStreamDeployer(org.springframework.cloud.skipper.client.SkipperClient skipperClient,
StreamDeploymentRepository streamDeploymentRepository) |
Modifier and Type | Method and Description |
---|---|
String |
calculateStreamState(String streamName) |
void |
deployStream(StreamDeploymentRequest streamDeploymentRequest) |
static List<org.springframework.cloud.deployer.spi.app.AppStatus> |
deserializeAppStatus(String platformStatus) |
void |
rollbackStream(String streamName,
int releaseVersion)
Rollback the stream to a specific version
|
Map<StreamDefinition,org.springframework.cloud.deployer.spi.app.DeploymentState> |
state(List<StreamDefinition> streamDefinitions) |
void |
undeployStream(String streamName)
Undeploys the stream identified by the given stream name.
|
void |
upgradeStream(String streamName,
org.springframework.cloud.skipper.domain.PackageIdentifier packageIdentifier,
String configYml)
Update the stream identified by the PackageIdentifier and runtime configuration values.
|
public SkipperStreamDeployer(org.springframework.cloud.skipper.client.SkipperClient skipperClient, StreamDeploymentRepository streamDeploymentRepository)
public static List<org.springframework.cloud.deployer.spi.app.AppStatus> deserializeAppStatus(String platformStatus)
public String calculateStreamState(String streamName)
calculateStreamState
in interface StreamDeployer
public Map<StreamDefinition,org.springframework.cloud.deployer.spi.app.DeploymentState> state(List<StreamDefinition> streamDefinitions)
state
in interface StreamDeployer
public void deployStream(StreamDeploymentRequest streamDeploymentRequest)
deployStream
in interface StreamDeployer
public void undeployStream(String streamName)
StreamDeployer
undeployStream
in interface StreamDeployer
streamName
- the name of the stream to un-deploypublic void upgradeStream(String streamName, org.springframework.cloud.skipper.domain.PackageIdentifier packageIdentifier, String configYml)
streamName
- the name of the stream to upgradepackageIdentifier
- the name of the package in skipperconfigYml
- the YML formatted configuration values to use when upgradingpublic void rollbackStream(String streamName, int releaseVersion)
streamName
- the name of the stream to rollbackreleaseVersion
- the version of the stream to rollback toCopyright © 2017 Pivotal Software, Inc.. All rights reserved.