public interface StreamDeployer
Modifier and Type | Method and Description |
---|---|
org.springframework.cloud.deployer.spi.core.RuntimeEnvironmentInfo |
environmentInfo() |
org.springframework.cloud.deployer.spi.app.AppStatus |
getAppStatus(String appDeploymentId)
Gets runtime application status
|
org.springframework.data.domain.Page<org.springframework.cloud.deployer.spi.app.AppStatus> |
getAppStatuses(org.springframework.data.domain.Pageable pageable)
Returns application statuses of all deployed applications
|
String |
getFromActuator(String appId,
String instanceId,
String endpoint)
Access an HTTP GET exposed actuator resource for a deployed app instance.
|
org.springframework.cloud.skipper.domain.LogInfo |
getLog(String streamName)
Returns the logs of all the applications of the stream identified by the stream name.
|
org.springframework.cloud.skipper.domain.LogInfo |
getLog(String streamName,
String appName)
Returns the logs of a specific application in the stream identified by the stream name.
|
StreamDeployment |
getStreamInfo(String streamName)
Get stream information (including the deployment properties) for the given stream name.
|
List<String> |
getStreams()
Returns the list of stream names that correspond to the currently available skipper releases.
|
List<org.springframework.cloud.deployer.spi.app.AppStatus> |
getStreamStatuses(String streamName)
Returns the deployed application statuses part for the streamName stream.
|
Map<String,List<org.springframework.cloud.deployer.spi.app.AppStatus>> |
getStreamStatuses(String[] streamName)
Returns the deployed application statuses part for the streamName streams.
|
Object |
postToActuator(String appId,
String instanceId,
org.springframework.cloud.skipper.domain.ActuatorPostRequest actuatorPostRequest)
Access an HTTP POST exposed actuator resource for a deployed app instance.
|
void |
scale(String streamName,
String appName,
int count,
Map<String,String> properties)
For a selected stream scales the number of appName instances to count.
|
Map<StreamDefinition,org.springframework.cloud.deployer.spi.app.DeploymentState> |
streamsStates(List<StreamDefinition> streamDefinitions)
Get the deployment states for a list of stream definitions
|
org.springframework.cloud.deployer.spi.app.DeploymentState |
streamState(String streamName)
Get the deployment state of a stream.
|
org.springframework.cloud.deployer.spi.app.DeploymentState streamState(String streamName)
streamName
- stream nameMap<StreamDefinition,org.springframework.cloud.deployer.spi.app.DeploymentState> streamsStates(List<StreamDefinition> streamDefinitions)
streamDefinitions
- list of stream definitionsorg.springframework.data.domain.Page<org.springframework.cloud.deployer.spi.app.AppStatus> getAppStatuses(org.springframework.data.domain.Pageable pageable)
pageable
- Pagination informationorg.springframework.cloud.deployer.spi.app.AppStatus getAppStatus(String appDeploymentId)
appDeploymentId
- the id of the application instance running in the target runtime environmentList<org.springframework.cloud.deployer.spi.app.AppStatus> getStreamStatuses(String streamName)
streamName
- Stream name to retrieve the runtime application statuses forMap<String,List<org.springframework.cloud.deployer.spi.app.AppStatus>> getStreamStatuses(String[] streamName)
streamName
- Stream names to retrieve the runtime application statuses fororg.springframework.cloud.deployer.spi.core.RuntimeEnvironmentInfo environmentInfo()
StreamDeployment getStreamInfo(String streamName)
streamName
- the name of the streamorg.springframework.cloud.skipper.domain.LogInfo getLog(String streamName)
streamName
- the stream nameorg.springframework.cloud.skipper.domain.LogInfo getLog(String streamName, String appName)
streamName
- the stream nameappName
- specific application name inside the streamvoid scale(String streamName, String appName, int count, Map<String,String> properties)
streamName
- the stream nameappName
- the app namecount
- the countproperties
- the propertiesList<String> getStreams()
String getFromActuator(String appId, String instanceId, String endpoint)
appId
- the application idinstanceId
- the application instance idendpoint
- the relative actuator path, e.g., /info
Object postToActuator(String appId, String instanceId, org.springframework.cloud.skipper.domain.ActuatorPostRequest actuatorPostRequest)
appId
- the deployer assigned guid of the app instanceinstanceId
- the application instance idactuatorPostRequest
- the request body containing the endpoint and data to pass to the endpointCopyright © 2024 Pivotal Software, Inc.. All rights reserved.