public interface StreamOperations
Modifier and Type | Method and Description |
---|---|
StreamDefinitionResource |
createStream(String name,
String definition,
String description,
boolean deploy)
Create a new stream, optionally deploying it.
|
void |
deploy(String name,
Map<String,String> properties)
Deploy an already created stream.
|
void |
destroy(String name)
Destroy an existing stream.
|
void |
destroyAll()
Destroy all streams known to the system.
|
String |
getManifest(String streamName,
int version)
Get manifest for the given stream deployed via Skipper.
|
StreamDefinitionResource |
getStreamDefinition(String streamName)
Queries the server for the stream definition.
|
Collection<org.springframework.cloud.skipper.domain.Release> |
history(String streamName)
Get the history of releases for the given stream deployed via Skipper.
|
StreamDeploymentResource |
info(String name) |
org.springframework.hateoas.PagedModel<StreamDefinitionResource> |
list() |
Collection<org.springframework.cloud.skipper.domain.Deployer> |
listPlatforms() |
void |
rollbackStream(String streamName,
int version)
Rollback the stream to the previous or a specific release version.
|
void |
scaleApplicationInstances(String streamName,
String appName,
Integer count,
Map<String,String> properties)
Scales number of application instances in a stream.
|
void |
undeploy(String name)
Undeploy a deployed stream, retaining its definition.
|
void |
undeployAll()
Undeploy all currently deployed streams.
|
void |
updateStream(String streamName,
String releaseName,
org.springframework.cloud.skipper.domain.PackageIdentifier packageIdentifier,
Map<String,String> updateProperties,
boolean force,
List<String> appNames)
Update the stream given its corresponding releaseName in Skipper using the specified
package and updated yaml config.
|
StreamAppStatusResource |
validateStreamDefinition(String streamDefinitionName)
Return the validation status for the apps in an stream.
|
org.springframework.hateoas.PagedModel<StreamDefinitionResource> list()
StreamDeploymentResource info(String name)
name
- the name of the streamStreamDefinitionResource createStream(String name, String definition, String description, boolean deploy)
name
- the name of the streamdefinition
- the stream definition DSLdescription
- the description of the streamdeploy
- whether to deploy the stream after creating its definitionvoid deploy(String name, Map<String,String> properties)
name
- the name of the streamproperties
- the deployment propertiesvoid undeploy(String name)
name
- the name of the streamvoid undeployAll()
void destroy(String name)
name
- the name of the streamvoid destroyAll()
void updateStream(String streamName, String releaseName, org.springframework.cloud.skipper.domain.PackageIdentifier packageIdentifier, Map<String,String> updateProperties, boolean force, List<String> appNames)
streamName
- the name of the stream to updatereleaseName
- the corresponding release name of the stream in skipperpackageIdentifier
- the package that corresponds to this streamupdateProperties
- a map of properties to use for updating the streamforce
- boolean flag to indicate if the stream update is enforced irrespective of
differences from the existing streamappNames
- app names to use for the stream update when update is enforcedvoid rollbackStream(String streamName, int version)
streamName
- the name of the stream to rollbackversion
- the version to rollback to. If the version is 0, then rollback to the
previous release. The version can not be less than zero.StreamDefinitionResource getStreamDefinition(String streamName)
streamName
- the name of the stream to get statusString getManifest(String streamName, int version)
streamName
- the stream(release) nameversion
- the version of the releaseCollection<org.springframework.cloud.skipper.domain.Release> history(String streamName)
streamName
- the stream(release) nameCollection<org.springframework.cloud.skipper.domain.Deployer> listPlatforms()
StreamAppStatusResource validateStreamDefinition(String streamDefinitionName) throws OperationNotSupportedException
streamDefinitionName
- The name of the stream definition to be validated.StreamAppStatusResource
containing the stream app statuses.OperationNotSupportedException
- if the server does not support stream validationvoid scaleApplicationInstances(String streamName, String appName, Integer count, Map<String,String> properties)
streamName
- the stream(release) name.appName
- name of application in the stream to scale.count
- number of instances to scale to.properties
- scale deployment properties.Copyright © 2020 Pivotal Software, Inc.. All rights reserved.