public class CloudFoundryAppDeployer extends Object implements org.springframework.cloud.deployer.spi.app.MultiStateAppDeployer
| Modifier and Type | Field and Description |
|---|---|
protected static com.fasterxml.jackson.databind.ObjectMapper |
OBJECT_MAPPER |
protected org.springframework.cloud.deployer.spi.core.RuntimeEnvironmentInfo |
runtimeEnvironmentInfo |
| Constructor and Description |
|---|
CloudFoundryAppDeployer(AppNameGenerator applicationNameGenerator,
CloudFoundryDeploymentProperties deploymentProperties,
org.cloudfoundry.operations.CloudFoundryOperations operations,
org.springframework.cloud.deployer.spi.core.RuntimeEnvironmentInfo runtimeEnvironmentInfo) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
deleteLocalApplicationResourceFile(org.springframework.cloud.deployer.spi.core.AppDeploymentRequest appDeploymentRequest)
Always delete downloaded files for static http resources.
|
String |
deploy(org.springframework.cloud.deployer.spi.core.AppDeploymentRequest appDeploymentRequest) |
org.springframework.cloud.deployer.spi.core.RuntimeEnvironmentInfo |
environmentInfo() |
protected Map<String,String> |
getEnvironmentVariables(String deploymentId,
org.springframework.cloud.deployer.spi.core.AppDeploymentRequest request) |
String |
getLog(String id) |
protected boolean |
hasCfEnv(org.springframework.core.io.Resource resource) |
protected Consumer<Throwable> |
logError(String msg)
Return a function usable in doOnError constructs that will unwrap unrecognized Cloud Foundry Exceptions
and log the text payload.
|
void |
scale(org.springframework.cloud.deployer.spi.app.AppScaleRequest appScaleRequest) |
Map<String,org.springframework.cloud.deployer.spi.app.DeploymentState> |
states(String... ids) |
reactor.core.publisher.Mono<Map<String,org.springframework.cloud.deployer.spi.app.DeploymentState>> |
statesReactive(String... ids) |
org.springframework.cloud.deployer.spi.app.AppStatus |
status(String id) |
reactor.core.publisher.Mono<org.springframework.cloud.deployer.spi.app.AppStatus> |
statusReactive(String id) |
void |
undeploy(String id) |
protected static final com.fasterxml.jackson.databind.ObjectMapper OBJECT_MAPPER
protected final org.springframework.cloud.deployer.spi.core.RuntimeEnvironmentInfo runtimeEnvironmentInfo
public CloudFoundryAppDeployer(AppNameGenerator applicationNameGenerator, CloudFoundryDeploymentProperties deploymentProperties, org.cloudfoundry.operations.CloudFoundryOperations operations, org.springframework.cloud.deployer.spi.core.RuntimeEnvironmentInfo runtimeEnvironmentInfo)
public String deploy(org.springframework.cloud.deployer.spi.core.AppDeploymentRequest appDeploymentRequest)
deploy in interface org.springframework.cloud.deployer.spi.app.AppDeployerpublic Map<String,org.springframework.cloud.deployer.spi.app.DeploymentState> states(String... ids)
states in interface org.springframework.cloud.deployer.spi.app.MultiStateAppDeployerpublic reactor.core.publisher.Mono<Map<String,org.springframework.cloud.deployer.spi.app.DeploymentState>> statesReactive(String... ids)
statesReactive in interface org.springframework.cloud.deployer.spi.app.MultiStateAppDeployerprotected Map<String,String> getEnvironmentVariables(String deploymentId, org.springframework.cloud.deployer.spi.core.AppDeploymentRequest request)
public org.springframework.cloud.deployer.spi.app.AppStatus status(String id)
status in interface org.springframework.cloud.deployer.spi.app.AppDeployerpublic reactor.core.publisher.Mono<org.springframework.cloud.deployer.spi.app.AppStatus> statusReactive(String id)
statusReactive in interface org.springframework.cloud.deployer.spi.app.AppDeployerpublic void undeploy(String id)
undeploy in interface org.springframework.cloud.deployer.spi.app.AppDeployerpublic String getLog(String id)
getLog in interface org.springframework.cloud.deployer.spi.app.AppDeployerpublic void scale(org.springframework.cloud.deployer.spi.app.AppScaleRequest appScaleRequest)
scale in interface org.springframework.cloud.deployer.spi.app.AppDeployerprotected Consumer<Throwable> logError(String msg)
protected void deleteLocalApplicationResourceFile(org.springframework.cloud.deployer.spi.core.AppDeploymentRequest appDeploymentRequest)
appDeploymentRequest - protected boolean hasCfEnv(org.springframework.core.io.Resource resource)
public org.springframework.cloud.deployer.spi.core.RuntimeEnvironmentInfo environmentInfo()
Copyright © 2020 Pivotal Software, Inc.. All rights reserved.