public class RuntimeTemplate extends Object implements RuntimeOperations
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> body)
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) |
public org.springframework.hateoas.PagedModel<AppStatusResource> status()
status in interface RuntimeOperationspublic AppStatusResource status(String deploymentId)
status in interface RuntimeOperationsdeploymentId - the deployment idpublic org.springframework.hateoas.PagedModel<StreamStatusResource> streamStatus(String... streamNames)
streamStatus in interface RuntimeOperationsstreamNames - deployed stream namespublic String getFromActuator(String appId, String instanceId, String endpoint)
RuntimeOperationsgetFromActuator in interface RuntimeOperationsappId - the application idinstanceId - the application instance idendpoint - the relative actuator path, e.g., /infopublic Object postToActuator(String appId, String instanceId, String endpoint, Map<String,Object> body)
RuntimeOperationspostToActuator in interface RuntimeOperationsappId - the application idinstanceId - the application instance idendpoint - the relative actuator path, e.g., /infobody - map representing the data to post on request bodypublic void postToUrl(String appId, String instanceId, byte[] data, HttpHeaders headers)
RuntimeOperationspostToUrl in interface RuntimeOperationsappId - 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.