public class AppStatus extends Object
AppDeploymentRequest
and
runtime deployment properties by a deployer during deployment. This status is
composed of an aggregate of all individual app instance deployments.
Consumers of the SPI obtain the app status via
AppDeployer.status(String)
, whereas SPI implementations create instances of this class via
AppStatus.Builder
.
AppInstanceStatus
Modifier and Type | Class and Description |
---|---|
static class |
AppStatus.Builder
Utility class constructing an instance of
AppStatus
using a builder pattern. |
Modifier | Constructor and Description |
---|---|
protected |
AppStatus(String deploymentId,
DeploymentState generalState)
Construct a new
AppStatus . |
Modifier and Type | Method and Description |
---|---|
String |
getDeploymentId()
Return the app deployment id.
|
Map<String,AppInstanceStatus> |
getInstances()
Return a map of
AppInstanceStatus keyed by a unique identifier
for each app instance. |
DeploymentState |
getState()
Return the deployment state for the the app.
|
static AppStatus.Builder |
of(String id)
Return a
Builder for AppStatus . |
String |
toString() |
protected AppStatus(String deploymentId, DeploymentState generalState)
AppStatus
.deploymentId
- id of the app this status is forgeneralState
- a value for general state of the app, or null if this should be derived from instancespublic String getDeploymentId()
public DeploymentState getState()
public Map<String,AppInstanceStatus> getInstances()
AppInstanceStatus
keyed by a unique identifier
for each app instance.AppInstanceStatus
public static AppStatus.Builder of(String id)
Builder
for AppStatus
.id
- of the app this status is forBuilder
for AppStatus
Copyright © 2019 Pivotal Software, Inc.. All rights reserved.