public interface RuntimeOperations
Modifier and Type | Method and Description |
---|---|
String |
getFromActuator(String appId,
String instanceId,
String endpoint)
Access an HTTP GET exposed actuator resource for a deployed app instance.
|
Object |
postToActuator(String appId,
String instanceId,
String endpoint,
Map<String,Object> data)
Access an HTTP POST exposed actuator resource for a deployed app instance.
|
void |
postToUrl(String appId,
String instanceId,
byte[] data,
HttpHeaders headers)
Provides for POST to application HTTP endpoint exposed via url property.
|
org.springframework.hateoas.PagedModel<AppStatusResource> |
status() |
AppStatusResource |
status(String deploymentId) |
org.springframework.hateoas.PagedModel<StreamStatusResource> |
streamStatus(String... streamNames) |
org.springframework.hateoas.PagedModel<AppStatusResource> status()
AppStatusResource status(String deploymentId)
deploymentId
- the deployment idorg.springframework.hateoas.PagedModel<StreamStatusResource> streamStatus(String... streamNames)
streamNames
- deployed stream namesString 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, String endpoint, Map<String,Object> data)
appId
- the application idinstanceId
- the application instance idendpoint
- the relative actuator path, e.g., /info
data
- map representing the data to post on request bodyvoid postToUrl(String appId, String instanceId, byte[] data, HttpHeaders headers)
appId
- the application idinstanceId
- the application instance iddata
- data to send to url. The mimetype should be in the Content-Type header if important.headers
- post request headers.
This method will return an exceptionCopyright © 2024 Pivotal Software, Inc.. All rights reserved.